Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
1 [\r
2     {\r
3         "id": "a64f3290.a6791",\r
4         "type": "get-resource",\r
5         "name": "get-resource service-subscription",\r
6         "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
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 641.03125,\r
10         "y": 413.09522104263306,\r
11         "z": "734fbe9e.c17a1",\r
12         "wires": [\r
13             [\r
14                 "d8117fcb.f28fc",\r
15                 "d8ad970.7e76268"\r
16             ]\r
17         ]\r
18     },\r
19     {\r
20         "id": "a43b0986.72aee8",\r
21         "type": "switchNode",\r
22         "name": "switch temp-ub-sub-account-id",\r
23         "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",\r
24         "comments": "",\r
25         "outputs": 1,\r
26         "x": 1053.0313415527344,\r
27         "y": 377.84530210494995,\r
28         "z": "734fbe9e.c17a1",\r
29         "wires": [\r
30             [\r
31                 "5fa9cabc.5c37a4",\r
32                 "625dfb34.3c2da4"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "5fa9cabc.5c37a4",\r
38         "type": "outcome",\r
39         "name": "NULL",\r
40         "xml": "<outcome value=''>",\r
41         "comments": "",\r
42         "outputs": 1,\r
43         "x": 1245.745792388916,\r
44         "y": 351.84534311294556,\r
45         "z": "734fbe9e.c17a1",\r
46         "wires": [\r
47             [\r
48                 "cc0fb2fe.338bf"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "625dfb34.3c2da4",\r
54         "type": "other",\r
55         "name": "Other",\r
56         "xml": "<outcome value='Other'>",\r
57         "comments": "",\r
58         "outputs": 1,\r
59         "x": 1246.0313568115234,\r
60         "y": 406.8453059196472,\r
61         "z": "734fbe9e.c17a1",\r
62         "wires": [\r
63             [\r
64                 "f90c9031.98073"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "d8117fcb.f28fc",\r
70         "type": "success",\r
71         "name": "success",\r
72         "xml": "<outcome value='success'>\n",\r
73         "comments": "",\r
74         "outputs": 1,\r
75         "x": 851.5311126708984,\r
76         "y": 385.84127950668335,\r
77         "z": "734fbe9e.c17a1",\r
78         "wires": [\r
79             [\r
80                 "a43b0986.72aee8"\r
81             ]\r
82         ]\r
83     },\r
84     {\r
85         "id": "d8ad970.7e76268",\r
86         "type": "failure",\r
87         "name": "failure",\r
88         "xml": "<outcome value='failure'>\n",\r
89         "comments": "",\r
90         "outputs": 1,\r
91         "x": 845.2097015380859,\r
92         "y": 438.0555911064148,\r
93         "z": "734fbe9e.c17a1",\r
94         "wires": [\r
95             [\r
96                 "3d299dd2.2779d2"\r
97             ]\r
98         ]\r
99     },\r
100     {\r
101         "id": "3d299dd2.2779d2",\r
102         "type": "returnFailure",\r
103         "name": "return failure",\r
104         "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
105         "comments": "",\r
106         "x": 997.9597015380859,\r
107         "y": 437.80565214157104,\r
108         "z": "734fbe9e.c17a1",\r
109         "wires": []\r
110     },\r
111     {\r
112         "id": "22ec666.190639a",\r
113         "type": "service-logic",\r
114         "name": "GENERIC-RESOURCE-API ${project.version}",\r
115         "module": "GENERIC-RESOURCE-API",\r
116         "version": "${project.version}",\r
117         "comments": "",\r
118         "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
119         "outputs": 1,\r
120         "x": 221.03125,\r
121         "y": 140.23810720443726,\r
122         "z": "734fbe9e.c17a1",\r
123         "wires": [\r
124             [\r
125                 "8abe47ad.c27bd8"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "3762da11.93d966",\r
131         "type": "dgstart",\r
132         "name": "DGSTART",\r
133         "outputs": 1,\r
134         "x": 141.74554443359375,\r
135         "y": 77.99999761581421,\r
136         "z": "734fbe9e.c17a1",\r
137         "wires": [\r
138             [\r
139                 "22ec666.190639a"\r
140             ]\r
141         ]\r
142     },\r
143     {\r
144         "id": "6b7a2ebd.00d69",\r
145         "type": "block",\r
146         "name": "block : atomic",\r
147         "xml": "<block atomic=\"true\">",\r
148         "atomic": "true",\r
149         "outputs": 1,\r
150         "x": 374.98365020751953,\r
151         "y": 376.8095316886902,\r
152         "z": "734fbe9e.c17a1",\r
153         "wires": [\r
154             [\r
155                 "a64f3290.a6791",\r
156                 "4bfcb671.50b358"\r
157             ]\r
158         ]\r
159     },\r
160     {\r
161         "id": "8abe47ad.c27bd8",\r
162         "type": "method",\r
163         "name": "method sdwan-get-tenant-auth",\r
164         "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",\r
165         "comments": "",\r
166         "outputs": 1,\r
167         "x": 232.74554443359375,\r
168         "y": 234.58633947372437,\r
169         "z": "734fbe9e.c17a1",\r
170         "wires": [\r
171             [\r
172                 "6b7a2ebd.00d69"\r
173             ]\r
174         ]\r
175     },\r
176     {\r
177         "id": "f90c9031.98073",\r
178         "type": "set",\r
179         "name": "set prop.tenant-id",\r
180         "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",\r
181         "comments": "",\r
182         "x": 1423.888427734375,\r
183         "y": 405.9523615837097,\r
184         "z": "734fbe9e.c17a1",\r
185         "wires": []\r
186     },\r
187     {\r
188         "id": "4bfcb671.50b358",\r
189         "type": "execute",\r
190         "name": "execute RestApiCallNode Create tenant auth",\r
191         "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
192         "comments": "",\r
193         "outputs": 1,\r
194         "x": 668.5312805175781,\r
195         "y": 515.988030910492,\r
196         "z": "734fbe9e.c17a1",\r
197         "wires": [\r
198             []\r
199         ]\r
200     },\r
201     {\r
202         "id": "cc0fb2fe.338bf",\r
203         "type": "returnFailure",\r
204         "name": "return failure",\r
205         "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
206         "comments": "",\r
207         "x": 1428.1740341186523,\r
208         "y": 351.6666522026062,\r
209         "z": "734fbe9e.c17a1",\r
210         "wires": []\r
211     }\r
212 ]