Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.json
1 [
2     {
3         "id": "8f1f2ad4.1b2628",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 185,
8         "y": 110,
9         "z": "892de9cf.a3e7e8",
10         "wires": [
11             [
12                 "aef28f38.d3ad2"
13             ]
14         ]
15     },
16     {
17         "id": "aef28f38.d3ad2",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
23         "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}'>",
24         "outputs": 1,
25         "x": 281.2380790710449,
26         "y": 170.95239067077637,
27         "z": "892de9cf.a3e7e8",
28         "wires": [
29             [
30                 "d541214e.1421c"
31             ]
32         ]
33     },
34     {
35         "id": "d541214e.1421c",
36         "type": "method",
37         "name": "security-zone-topology-operation-unassign",
38         "xml": "<method rpc='security-zone-topology-operation-unassign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 325.15489196777344,
42         "y": 210.190447807312,
43         "z": "892de9cf.a3e7e8",
44         "wires": [
45             [
46                 "3d909232.be8cbe"
47             ]
48         ]
49     },
50     {
51         "id": "3d909232.be8cbe",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 235.47619247436523,
59         "y": 349.5237879753113,
60         "z": "892de9cf.a3e7e8",
61         "wires": [
62             [
63                 "ac546d04.a44e3",
64                 "65b7ebff.45ef54",
65                 "887af0a1.cfd5a",
66                 "16719562.f89cfb",
67                 "921e5db9.a3742",
68                 "ae6a6800.748f18",
69                 "4585bd6c.db3454",
70                 "a30a4193.dc67c"
71             ]
72         ]
73     },
74     {
75         "id": "65b7ebff.45ef54",
76         "type": "returnSuccess",
77         "name": "return success",
78         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
79         "comments": "",
80         "x": 502.0001106262207,
81         "y": 1019.2145080566406,
82         "z": "892de9cf.a3e7e8",
83         "wires": []
84     },
85     {
86         "id": "ac546d04.a44e3",
87         "type": "set",
88         "name": "set output to api handler",
89         "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
90         "comments": "",
91         "x": 530.7540245056152,
92         "y": 983.3370542526245,
93         "z": "892de9cf.a3e7e8",
94         "wires": []
95     },
96     {
97         "id": "16719562.f89cfb",
98         "type": "set",
99         "name": "set tmp.ar.self-link",
100         "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n",
101         "comments": "",
102         "x": 497.73806381225586,
103         "y": 323.33332538604736,
104         "z": "892de9cf.a3e7e8",
105         "wires": []
106     },
107     {
108         "id": "887af0a1.cfd5a",
109         "type": "set",
110         "name": "set tmp.ar.allotted-resource-id,etc",
111         "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
112         "comments": "",
113         "x": 544.9973258972168,
114         "y": 289.59259128570557,
115         "z": "892de9cf.a3e7e8",
116         "wires": []
117     },
118     {
119         "id": "921e5db9.a3742",
120         "type": "execute",
121         "name": "execute Properties",
122         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
123         "comments": "",
124         "outputs": 1,
125         "x": 503.9934196472168,
126         "y": 359.23152446746826,
127         "z": "892de9cf.a3e7e8",
128         "wires": [
129             []
130         ]
131     },
132     {
133         "id": "4585bd6c.db3454",
134         "type": "execute",
135         "name": "execute RestApiCallNode - Get AR by id",
136         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
137         "comments": "",
138         "outputs": 1,
139         "x": 566.5187530517578,
140         "y": 520.4594917297363,
141         "z": "892de9cf.a3e7e8",
142         "wires": [
143             [
144                 "39c78959.7ed206",
145                 "f4ec9c65.dbf1a"
146             ]
147         ]
148     },
149     {
150         "id": "ae6a6800.748f18",
151         "type": "execute",
152         "name": "generate allotted-resource url",
153         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.sz-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
154         "comments": "",
155         "outputs": 1,
156         "x": 532.0648536682129,
157         "y": 419.0172290802002,
158         "z": "892de9cf.a3e7e8",
159         "wires": [
160             []
161         ]
162     },
163     {
164         "id": "39c78959.7ed206",
165         "type": "success",
166         "name": "success",
167         "xml": "<outcome value='success'>\n",
168         "comments": "",
169         "outputs": 1,
170         "x": 823.8148918151855,
171         "y": 519.2672522068024,
172         "z": "892de9cf.a3e7e8",
173         "wires": [
174             [
175                 "aa4578bf.e01898"
176             ]
177         ]
178     },
179     {
180         "id": "cf288e81.867c",
181         "type": "not-found",
182         "name": "not-found",
183         "xml": "<outcome value='not-found'>\n",
184         "comments": "",
185         "outputs": 1,
186         "x": 844.837329864502,
187         "y": 926.432332418859,
188         "z": "892de9cf.a3e7e8",
189         "wires": [
190             [
191                 "562e732f.776e5c"
192             ]
193         ]
194     },
195     {
196         "id": "8f1f61fb.4c4c9",
197         "type": "failure",
198         "name": "failure",
199         "xml": "<outcome value='failure'>\n",
200         "comments": "",
201         "outputs": 1,
202         "x": 835.8373794555664,
203         "y": 894.9323581680655,
204         "z": "892de9cf.a3e7e8",
205         "wires": [
206             [
207                 "562e732f.776e5c"
208             ]
209         ]
210     },
211     {
212         "id": "48115134.9ae56",
213         "type": "success",
214         "name": "success",
215         "xml": "<outcome value='success'>\n",
216         "comments": "",
217         "outputs": 1,
218         "x": 839.5874176025391,
219         "y": 865.2894630432129,
220         "z": "892de9cf.a3e7e8",
221         "wires": [
222             [
223                 "9c761fba.db0c3"
224             ]
225         ]
226     },
227     {
228         "id": "562e732f.776e5c",
229         "type": "returnFailure",
230         "name": "return failure",
231         "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 updating md-sal for security-zone-allotted-resource\" />\n",
232         "comments": "",
233         "x": 1005.5874176025391,
234         "y": 895.6823820099235,
235         "z": "892de9cf.a3e7e8",
236         "wires": []
237     },
238     {
239         "id": "aa4578bf.e01898",
240         "type": "block",
241         "name": "block: atomic",
242         "xml": "<block atomic=\"true\">\n",
243         "atomic": "false",
244         "comments": "",
245         "outputs": 1,
246         "x": 1004.8148460388184,
247         "y": 519.7672016620636,
248         "z": "892de9cf.a3e7e8",
249         "wires": [
250             [
251                 "d17cf2f0.cec85",
252                 "dae16c74.e3b7c"
253             ]
254         ]
255     },
256     {
257         "id": "d17cf2f0.cec85",
258         "type": "switchNode",
259         "name": "switch sz length",
260         "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
261         "comments": "",
262         "outputs": 1,
263         "x": 1250.6720924377441,
264         "y": 554.052964925766,
265         "z": "892de9cf.a3e7e8",
266         "wires": [
267             [
268                 "9eb758cd.982008"
269             ]
270         ]
271     },
272     {
273         "id": "9eb758cd.982008",
274         "type": "other",
275         "name": "outcome 1",
276         "xml": "<outcome value='1'>\n",
277         "comments": "",
278         "outputs": 1,
279         "x": 1441.6720962524414,
280         "y": 554.0529625415802,
281         "z": "892de9cf.a3e7e8",
282         "wires": [
283             [
284                 "e43335e7.a2b4b8"
285             ]
286         ]
287     },
288     {
289         "id": "90a7fa85.7e06d8",
290         "type": "set",
291         "name": "set sz-ar from get",
292         "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
293         "comments": "",
294         "x": 1841.5292320251465,
295         "y": 554.6243867874146,
296         "z": "892de9cf.a3e7e8",
297         "wires": []
298     },
299     {
300         "id": "e43335e7.a2b4b8",
301         "type": "block",
302         "name": "block: atomic",
303         "xml": "<block atomic='true'>\n",
304         "atomic": "false",
305         "comments": "",
306         "outputs": 1,
307         "x": 1612.5290794372559,
308         "y": 554.6244316101074,
309         "z": "892de9cf.a3e7e8",
310         "wires": [
311             [
312                 "90a7fa85.7e06d8",
313                 "82e79827.7b2528",
314                 "e9d4c55b.3b68e8"
315             ]
316         ]
317     },
318     {
319         "id": "82e79827.7b2528",
320         "type": "set",
321         "name": "set oper-status",
322         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
323         "comments": "",
324         "x": 1839.5294761657715,
325         "y": 622.0529508590698,
326         "z": "892de9cf.a3e7e8",
327         "wires": []
328     },
329     {
330         "id": "dceff592.9c16a8",
331         "type": "comment",
332         "name": "GET security-zone-allotted-resource from mdsal",
333         "info": "",
334         "comments": "",
335         "x": 591.8148155212402,
336         "y": 483.7671926021576,
337         "z": "892de9cf.a3e7e8",
338         "wires": []
339     },
340     {
341         "id": "e9d4c55b.3b68e8",
342         "type": "switchNode",
343         "name": "switch order-status",
344         "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
345         "comments": "",
346         "outputs": 1,
347         "x": 1849.52925491333,
348         "y": 587.6243848800659,
349         "z": "892de9cf.a3e7e8",
350         "wires": [
351             [
352                 "ee32ca42.029ac8",
353                 "f44f15e1.8ed938"
354             ]
355         ]
356     },
357     {
358         "id": "ee32ca42.029ac8",
359         "type": "outcome",
360         "name": "outcome Created",
361         "xml": "<outcome value='Created'>\n",
362         "comments": "",
363         "outputs": 1,
364         "x": 2061.1292114257812,
365         "y": 548.6243848800659,
366         "z": "892de9cf.a3e7e8",
367         "wires": [
368             [
369                 "74e489f7.35eb68"
370             ]
371         ]
372     },
373     {
374         "id": "f44f15e1.8ed938",
375         "type": "outcome",
376         "name": "outcome Other",
377         "xml": "<outcome value='Other'>\n",
378         "comments": "",
379         "outputs": 1,
380         "x": 2086.8435859680176,
381         "y": 584.052975654602,
382         "z": "892de9cf.a3e7e8",
383         "wires": [
384             [
385                 "74e489f7.35eb68"
386             ]
387         ]
388     },
389     {
390         "id": "dae16c74.e3b7c",
391         "type": "set",
392         "name": "save backup copy of mdsal-ar for rollback",
393         "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
394         "comments": "",
395         "x": 1330.3864250183105,
396         "y": 519.7672936916351,
397         "z": "892de9cf.a3e7e8",
398         "wires": []
399     },
400     {
401         "id": "972a22dc.b7b85",
402         "type": "comment",
403         "name": "Create urls for restapi",
404         "info": "",
405         "comments": "",
406         "x": 502.9576606750488,
407         "y": 388.6243562698364,
408         "z": "892de9cf.a3e7e8",
409         "wires": []
410     },
411     {
412         "id": "9c761fba.db0c3",
413         "type": "block",
414         "name": "block",
415         "xml": "<block>\n",
416         "atomic": "false",
417         "comments": "",
418         "outputs": 1,
419         "x": 981.2433853149414,
420         "y": 861.481632232666,
421         "z": "892de9cf.a3e7e8",
422         "wires": [
423             []
424         ]
425     },
426     {
427         "id": "f4ec9c65.dbf1a",
428         "type": "other",
429         "name": "other",
430         "xml": "<outcome value='Other'>\n",
431         "comments": "",
432         "outputs": 1,
433         "x": 823.5766868591309,
434         "y": 555.4814250469208,
435         "z": "892de9cf.a3e7e8",
436         "wires": [
437             [
438                 "8c932988.c6f7a8"
439             ]
440         ]
441     },
442     {
443         "id": "8c932988.c6f7a8",
444         "type": "block",
445         "name": "block: atomic",
446         "xml": "<block atomic=\"true\">\n",
447         "atomic": "false",
448         "comments": "",
449         "outputs": 1,
450         "x": 1003.5766372680664,
451         "y": 556.1479756832123,
452         "z": "892de9cf.a3e7e8",
453         "wires": [
454             []
455         ]
456     },
457     {
458         "id": "74e489f7.35eb68",
459         "type": "block",
460         "name": "block",
461         "xml": "<block>\n",
462         "atomic": "false",
463         "comments": "",
464         "outputs": 1,
465         "x": 2275.5997276306152,
466         "y": 550.0000190734863,
467         "z": "892de9cf.a3e7e8",
468         "wires": [
469             []
470         ]
471     },
472     {
473         "id": "a30a4193.dc67c",
474         "type": "execute",
475         "name": "execute RestApiCallNode - PUT AR by id",
476         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
477         "comments": "",
478         "outputs": 1,
479         "x": 568.0000610351562,
480         "y": 878.0000267028809,
481         "z": "892de9cf.a3e7e8",
482         "wires": [
483             [
484                 "48115134.9ae56",
485                 "8f1f61fb.4c4c9",
486                 "cf288e81.867c"
487             ]
488         ]
489     }
490 ]