SDWAN tenant auth DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
index d088858..801b57c 100644 (file)
 [\r
-  {\r
-    "id": "b8581db5.dbca7",\r
-    "type": "get-resource",\r
-    "name": "get-resource service-subscription",\r
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n        key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n        AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n      force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n      \n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 597,\r
-    "y": 418.09522092342377,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "1a771e75.f79d12",\r
-        "ac62029.181ce"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "5d45ba87.92c374",\r
-    "type": "switchNode",\r
-    "name": "switch temp-ub-sub-account-id",\r
-    "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1009.0000915527344,\r
-    "y": 382.84530198574066,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "5358b5db.d1e49c",\r
-        "28c300d9.7fa36"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "5358b5db.d1e49c",\r
-    "type": "outcome",\r
-    "name": "NULL",\r
-    "xml": "<outcome value=''>",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1201.714542388916,\r
-    "y": 356.84534299373627,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "831b80bb.e08e8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "28c300d9.7fa36",\r
-    "type": "other",\r
-    "name": "Other",\r
-    "xml": "<outcome value='Other'>",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1202.0001068115234,\r
-    "y": 411.8453058004379,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "e1a74ece.52f65"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "1a771e75.f79d12",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 807.4998626708984,\r
-    "y": 390.84127938747406,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "5d45ba87.92c374"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ac62029.181ce",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 801.1784515380859,\r
-    "y": 443.0555909872055,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "f81e2009.7dbd5"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "f81e2009.7dbd5",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",\r
-    "comments": "",\r
-    "x": 953.9284515380859,\r
-    "y": 442.80565202236176,\r
-    "z": "a703782b.2992b8",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "4bd31b43.411d14",\r
-    "type": "service-logic",\r
-    "name": "GENERIC-RESOURCE-API ${project.version}",\r
-    "module": "GENERIC-RESOURCE-API",\r
-    "version": "${project.version}",\r
-    "comments": "",\r
-    "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
-    "outputs": 1,\r
-    "x": 177,\r
-    "y": 145.23810708522797,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "d79d2c6f.11854"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "c863bd10.503ce",\r
-    "type": "dgstart",\r
-    "name": "DGSTART",\r
-    "outputs": 1,\r
-    "x": 97.71429443359375,\r
-    "y": 82.99999749660492,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "4bd31b43.411d14"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "5dc11f37.9dd37",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 330.95240020751953,\r
-    "y": 381.8095315694809,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "b8581db5.dbca7",\r
-        "c8c0bf77.157a7"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "d79d2c6f.11854",\r
-    "type": "method",\r
-    "name": "method sdwan-get-tenant-auth",\r
-    "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 188.71429443359375,\r
-    "y": 239.58633935451508,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      [\r
-        "5dc11f37.9dd37"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "e1a74ece.52f65",\r
-    "type": "set",\r
-    "name": "set prop.tenant-id",\r
-    "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",\r
-    "comments": "",\r
-    "x": 1379.857177734375,\r
-    "y": 410.9523614645004,\r
-    "z": "a703782b.2992b8",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "c8c0bf77.157a7",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode Create tenant auth",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 624.5000305175781,\r
-    "y": 520.9880307912827,\r
-    "z": "a703782b.2992b8",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "831b80bb.e08e8",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",\r
-    "comments": "",\r
-    "x": 1384.1427841186523,\r
-    "y": 356.6666520833969,\r
-    "z": "a703782b.2992b8",\r
-    "wires": []\r
-  }\r
-]\r
+    {\r
+        "id": "a64f3290.a6791",\r
+        "type": "get-resource",\r
+        "name": "get-resource service-subscription",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n        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\n        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'\n      force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n      \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 641.03125,\r
+        "y": 413.09522104263306,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "d8117fcb.f28fc",\r
+                "d8ad970.7e76268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a43b0986.72aee8",\r
+        "type": "switchNode",\r
+        "name": "switch temp-ub-sub-account-id",\r
+        "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1053.0313415527344,\r
+        "y": 377.84530210494995,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "5fa9cabc.5c37a4",\r
+                "625dfb34.3c2da4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fa9cabc.5c37a4",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1245.745792388916,\r
+        "y": 351.84534311294556,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "cc0fb2fe.338bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "625dfb34.3c2da4",\r
+        "type": "other",\r
+        "name": "Other",\r
+        "xml": "<outcome value='Other'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1246.0313568115234,\r
+        "y": 406.8453059196472,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "f90c9031.98073"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8117fcb.f28fc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851.5311126708984,\r
+        "y": 385.84127950668335,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "a43b0986.72aee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8ad970.7e76268",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 845.2097015380859,\r
+        "y": 438.0555911064148,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "3d299dd2.2779d2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d299dd2.2779d2",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",\r
+        "comments": "",\r
+        "x": 997.9597015380859,\r
+        "y": 437.80565214157104,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "22ec666.190639a",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 221.03125,\r
+        "y": 140.23810720443726,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "8abe47ad.c27bd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3762da11.93d966",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 141.74554443359375,\r
+        "y": 77.99999761581421,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "22ec666.190639a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b7a2ebd.00d69",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 374.98365020751953,\r
+        "y": 376.8095316886902,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "a64f3290.a6791",\r
+                "4bfcb671.50b358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8abe47ad.c27bd8",\r
+        "type": "method",\r
+        "name": "method sdwan-get-tenant-auth",\r
+        "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 232.74554443359375,\r
+        "y": 234.58633947372437,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            [\r
+                "6b7a2ebd.00d69"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f90c9031.98073",\r
+        "type": "set",\r
+        "name": "set prop.tenant-id",\r
+        "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",\r
+        "comments": "",\r
+        "x": 1423.888427734375,\r
+        "y": 405.9523615837097,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4bfcb671.50b358",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create tenant auth",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 668.5312805175781,\r
+        "y": 515.988030910492,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc0fb2fe.338bf",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",\r
+        "comments": "",\r
+        "x": 1428.1740341186523,\r
+        "y": 351.6666522026062,\r
+        "z": "734fbe9e.c17a1",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file