<block atomic="true">\r
<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
resource="service-subscription" \r
- key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \r
- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\r
+ key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type\r
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'\r
force="true" pfx="tmp.AnAI-data-tenant">\r
<outcome value='success'>\r
<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\r
</outcome>\r
</get-resource>\r
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />\r
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />\r
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`" />\r
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
<parameter name="format" value="json"/>\r
</execute>\r
</block>\r
</method>\r
-</service-logic>\r
+</service-logic>
\ No newline at end of file