Allow sub directories for graphs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
1 [
2   {
3     "id": "30fe9468.76f32c",
4     "type": "get-resource",
5     "name": "get-resource service-subscription",
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",
7     "comments": "",
8     "outputs": 1,
9     "x": 632.8652648925781,
10     "y": 374.2938051223755,
11     "z": "97aa802d.404bc",
12     "wires": [
13       [
14         "a889eb39.2fcd08",
15         "483504b1.ecba4c"
16       ]
17     ]
18   },
19   {
20     "id": "516f9f53.00463",
21     "type": "switchNode",
22     "name": "switch temp-ub-sub-account-id",
23     "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
24     "comments": "",
25     "outputs": 1,
26     "x": 1044.8653564453125,
27     "y": 339.0438861846924,
28     "z": "97aa802d.404bc",
29     "wires": [
30       [
31         "f1e993a3.ae05f",
32         "6af3c030.9694c"
33       ]
34     ]
35   },
36   {
37     "id": "f1e993a3.ae05f",
38     "type": "outcome",
39     "name": "NULL",
40     "xml": "<outcome value=''>",
41     "comments": "",
42     "outputs": 1,
43     "x": 1237.5798072814941,
44     "y": 313.043927192688,
45     "z": "97aa802d.404bc",
46     "wires": [
47       [
48         "be0f95e9.861918"
49       ]
50     ]
51   },
52   {
53     "id": "6af3c030.9694c",
54     "type": "other",
55     "name": "Other",
56     "xml": "<outcome value='Other'>",
57     "comments": "",
58     "outputs": 1,
59     "x": 1237.8653717041016,
60     "y": 368.04388999938965,
61     "z": "97aa802d.404bc",
62     "wires": [
63       [
64         "3bf7a2b9.96247e"
65       ]
66     ]
67   },
68   {
69     "id": "a889eb39.2fcd08",
70     "type": "success",
71     "name": "success",
72     "xml": "<outcome value='success'>\n",
73     "comments": "",
74     "outputs": 1,
75     "x": 843.3651275634766,
76     "y": 347.0398635864258,
77     "z": "97aa802d.404bc",
78     "wires": [
79       [
80         "516f9f53.00463"
81       ]
82     ]
83   },
84   {
85     "id": "483504b1.ecba4c",
86     "type": "failure",
87     "name": "failure",
88     "xml": "<outcome value='failure'>\n",
89     "comments": "",
90     "outputs": 1,
91     "x": 837.0437164306641,
92     "y": 399.2541751861572,
93     "z": "97aa802d.404bc",
94     "wires": [
95       [
96         "212060fe.4fc32"
97       ]
98     ]
99   },
100   {
101     "id": "212060fe.4fc32",
102     "type": "returnFailure",
103     "name": "return failure",
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",
105     "comments": "",
106     "x": 989.7937164306641,
107     "y": 399.0042362213135,
108     "z": "97aa802d.404bc",
109     "wires": []
110   },
111   {
112     "id": "b6a8c3c7.8bc03",
113     "type": "service-logic",
114     "name": "GENERIC-RESOURCE-API ${project.version}",
115     "module": "GENERIC-RESOURCE-API",
116     "version": "${project.version}",
117     "comments": "",
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}'>",
119     "outputs": 1,
120     "x": 212.86526489257812,
121     "y": 101.43669128417969,
122     "z": "97aa802d.404bc",
123     "wires": [
124       [
125         "68fe5032.b2685"
126       ]
127     ]
128   },
129   {
130     "id": "f788aa3b.dab3e8",
131     "type": "dgstart",
132     "name": "DGSTART",
133     "outputs": 1,
134     "x": 133.57955932617188,
135     "y": 39.19858169555664,
136     "z": "97aa802d.404bc",
137     "wires": [
138       [
139         "b6a8c3c7.8bc03"
140       ]
141     ]
142   },
143   {
144     "id": "672a5bc8.7ace04",
145     "type": "block",
146     "name": "block : atomic",
147     "xml": "<block atomic=\"true\">",
148     "atomic": "true",
149     "outputs": 1,
150     "x": 366.81766510009766,
151     "y": 338.0081157684326,
152     "z": "97aa802d.404bc",
153     "wires": [
154       [
155         "30fe9468.76f32c",
156         "ef87bbc7.0bf428"
157       ]
158     ]
159   },
160   {
161     "id": "68fe5032.b2685",
162     "type": "method",
163     "name": "method sdwan-get-tenant-auth",
164     "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
165     "comments": "",
166     "outputs": 1,
167     "x": 224.57955932617188,
168     "y": 195.7849235534668,
169     "z": "97aa802d.404bc",
170     "wires": [
171       [
172         "672a5bc8.7ace04"
173       ]
174     ]
175   },
176   {
177     "id": "3bf7a2b9.96247e",
178     "type": "set",
179     "name": "set prop.tenant-id",
180     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
181     "comments": "",
182     "x": 1415.7224426269531,
183     "y": 367.15094566345215,
184     "z": "97aa802d.404bc",
185     "wires": []
186   },
187   {
188     "id": "ef87bbc7.0bf428",
189     "type": "execute",
190     "name": "execute RestApiCallNode Create tenant auth",
191     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\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`\" />",
192     "comments": "",
193     "outputs": 1,
194     "x": 660.3652954101562,
195     "y": 477.1866149902344,
196     "z": "97aa802d.404bc",
197     "wires": [
198       []
199     ]
200   },
201   {
202     "id": "be0f95e9.861918",
203     "type": "returnFailure",
204     "name": "return failure",
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",
206     "comments": "",
207     "x": 1420.0080490112305,
208     "y": 312.86523628234863,
209     "z": "97aa802d.404bc",
210     "wires": []
211   }
212 ]