Merge "Fix JSON template for DMaaP messages"
[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": "b8581db5.dbca7",\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[$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
7     "comments": "",\r
8     "outputs": 1,\r
9     "x": 597,\r
10     "y": 418.09522092342377,\r
11     "z": "a703782b.2992b8",\r
12     "wires": [\r
13       [\r
14         "1a771e75.f79d12",\r
15         "ac62029.181ce"\r
16       ]\r
17     ]\r
18   },\r
19   {\r
20     "id": "5d45ba87.92c374",\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": 1009.0000915527344,\r
27     "y": 382.84530198574066,\r
28     "z": "a703782b.2992b8",\r
29     "wires": [\r
30       [\r
31         "5358b5db.d1e49c",\r
32         "28c300d9.7fa36"\r
33       ]\r
34     ]\r
35   },\r
36   {\r
37     "id": "5358b5db.d1e49c",\r
38     "type": "outcome",\r
39     "name": "NULL",\r
40     "xml": "<outcome value=''>",\r
41     "comments": "",\r
42     "outputs": 1,\r
43     "x": 1201.714542388916,\r
44     "y": 356.84534299373627,\r
45     "z": "a703782b.2992b8",\r
46     "wires": [\r
47       [\r
48         "831b80bb.e08e8"\r
49       ]\r
50     ]\r
51   },\r
52   {\r
53     "id": "28c300d9.7fa36",\r
54     "type": "other",\r
55     "name": "Other",\r
56     "xml": "<outcome value='Other'>",\r
57     "comments": "",\r
58     "outputs": 1,\r
59     "x": 1202.0001068115234,\r
60     "y": 411.8453058004379,\r
61     "z": "a703782b.2992b8",\r
62     "wires": [\r
63       [\r
64         "e1a74ece.52f65"\r
65       ]\r
66     ]\r
67   },\r
68   {\r
69     "id": "1a771e75.f79d12",\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": 807.4998626708984,\r
76     "y": 390.84127938747406,\r
77     "z": "a703782b.2992b8",\r
78     "wires": [\r
79       [\r
80         "5d45ba87.92c374"\r
81       ]\r
82     ]\r
83   },\r
84   {\r
85     "id": "ac62029.181ce",\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": 801.1784515380859,\r
92     "y": 443.0555909872055,\r
93     "z": "a703782b.2992b8",\r
94     "wires": [\r
95       [\r
96         "f81e2009.7dbd5"\r
97       ]\r
98     ]\r
99   },\r
100   {\r
101     "id": "f81e2009.7dbd5",\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": 953.9284515380859,\r
107     "y": 442.80565202236176,\r
108     "z": "a703782b.2992b8",\r
109     "wires": []\r
110   },\r
111   {\r
112     "id": "4bd31b43.411d14",\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": 177,\r
121     "y": 145.23810708522797,\r
122     "z": "a703782b.2992b8",\r
123     "wires": [\r
124       [\r
125         "d79d2c6f.11854"\r
126       ]\r
127     ]\r
128   },\r
129   {\r
130     "id": "c863bd10.503ce",\r
131     "type": "dgstart",\r
132     "name": "DGSTART",\r
133     "outputs": 1,\r
134     "x": 97.71429443359375,\r
135     "y": 82.99999749660492,\r
136     "z": "a703782b.2992b8",\r
137     "wires": [\r
138       [\r
139         "4bd31b43.411d14"\r
140       ]\r
141     ]\r
142   },\r
143   {\r
144     "id": "5dc11f37.9dd37",\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": 330.95240020751953,\r
151     "y": 381.8095315694809,\r
152     "z": "a703782b.2992b8",\r
153     "wires": [\r
154       [\r
155         "b8581db5.dbca7",\r
156         "c8c0bf77.157a7"\r
157       ]\r
158     ]\r
159   },\r
160   {\r
161     "id": "d79d2c6f.11854",\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": 188.71429443359375,\r
168     "y": 239.58633935451508,\r
169     "z": "a703782b.2992b8",\r
170     "wires": [\r
171       [\r
172         "5dc11f37.9dd37"\r
173       ]\r
174     ]\r
175   },\r
176   {\r
177     "id": "e1a74ece.52f65",\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": 1379.857177734375,\r
183     "y": 410.9523614645004,\r
184     "z": "a703782b.2992b8",\r
185     "wires": []\r
186   },\r
187   {\r
188     "id": "c8c0bf77.157a7",\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/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
192     "comments": "",\r
193     "outputs": 1,\r
194     "x": 624.5000305175781,\r
195     "y": 520.9880307912827,\r
196     "z": "a703782b.2992b8",\r
197     "wires": [\r
198       []\r
199     ]\r
200   },\r
201   {\r
202     "id": "831b80bb.e08e8",\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": 1384.1427841186523,\r
208     "y": 356.6666520833969,\r
209     "z": "a703782b.2992b8",\r
210     "wires": []\r
211   }\r
212 ]\r