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-delete.json
1 [
2     {
3         "id": "6b945847.1c8628",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 187,
8         "y": 84,
9         "z": "cab86701.408c88",
10         "wires": [
11             [
12                 "46c9c550.08ddbc"
13             ]
14         ]
15     },
16     {
17         "id": "46c9c550.08ddbc",
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": 283.2380790710449,
26         "y": 144.95239067077637,
27         "z": "cab86701.408c88",
28         "wires": [
29             [
30                 "33033a6c.777e46"
31             ]
32         ]
33     },
34     {
35         "id": "33033a6c.777e46",
36         "type": "method",
37         "name": "security-zone-topology-operation-delete",
38         "xml": "<method rpc='security-zone-topology-operation-delete' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 329.15485763549805,
42         "y": 180.19044589996338,
43         "z": "cab86701.408c88",
44         "wires": [
45             [
46                 "71a136f2.4a6ae8"
47             ]
48         ]
49     },
50     {
51         "id": "71a136f2.4a6ae8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 237.47619247436523,
59         "y": 323.5237879753113,
60         "z": "cab86701.408c88",
61         "wires": [
62             [
63                 "d473982e.2073e8",
64                 "21b535a4.6f3cfa",
65                 "58735763.200388",
66                 "67dca0c.5203f6",
67                 "d4bebd02.2ac6",
68                 "ed3aea18.ac56a8",
69                 "ce33759f.7f8848",
70                 "af4ea7a7.5e99e8",
71                 "dd978c58.19189",
72                 "a078b88c.279298",
73                 "1469e91d.b421d7",
74                 "4a2606ec.007d08"
75             ]
76         ]
77     },
78     {
79         "id": "21b535a4.6f3cfa",
80         "type": "returnSuccess",
81         "name": "return success",
82         "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",
83         "comments": "",
84         "x": 504.0001106262207,
85         "y": 993.2145080566406,
86         "z": "cab86701.408c88",
87         "wires": []
88     },
89     {
90         "id": "d473982e.2073e8",
91         "type": "set",
92         "name": "set output to api handler",
93         "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",
94         "comments": "",
95         "x": 532.7540245056152,
96         "y": 957.3370542526245,
97         "z": "cab86701.408c88",
98         "wires": []
99     },
100     {
101         "id": "dd978c58.19189",
102         "type": "set",
103         "name": "set allotted-resource-oper-status",
104         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$security-zone-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
105         "comments": "",
106         "x": 543.7542190551758,
107         "y": 704.0514001846313,
108         "z": "cab86701.408c88",
109         "wires": []
110     },
111     {
112         "id": "67dca0c.5203f6",
113         "type": "set",
114         "name": "set tmp.ar.self-link",
115         "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",
116         "comments": "",
117         "x": 499.73806381225586,
118         "y": 297.33332538604736,
119         "z": "cab86701.408c88",
120         "wires": []
121     },
122     {
123         "id": "58735763.200388",
124         "type": "set",
125         "name": "set tmp.ar.allotted-resource-id,etc",
126         "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",
127         "comments": "",
128         "x": 546.9973258972168,
129         "y": 263.59259128570557,
130         "z": "cab86701.408c88",
131         "wires": []
132     },
133     {
134         "id": "d4bebd02.2ac6",
135         "type": "execute",
136         "name": "execute Properties",
137         "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",
138         "comments": "",
139         "outputs": 1,
140         "x": 505.9934196472168,
141         "y": 333.23152446746826,
142         "z": "cab86701.408c88",
143         "wires": [
144             []
145         ]
146     },
147     {
148         "id": "ce33759f.7f8848",
149         "type": "execute",
150         "name": "execute RestApiCallNode - Get AR by id",
151         "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",
152         "comments": "",
153         "outputs": 1,
154         "x": 568.5187530517578,
155         "y": 494.4594917297363,
156         "z": "cab86701.408c88",
157         "wires": [
158             [
159                 "3d6ff871.1b6728",
160                 "c68f9183.6fe9"
161             ]
162         ]
163     },
164     {
165         "id": "ed3aea18.ac56a8",
166         "type": "execute",
167         "name": "generate allotted-resource url",
168         "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",
169         "comments": "",
170         "outputs": 1,
171         "x": 534.0648536682129,
172         "y": 393.0172290802002,
173         "z": "cab86701.408c88",
174         "wires": [
175             []
176         ]
177     },
178     {
179         "id": "3d6ff871.1b6728",
180         "type": "success",
181         "name": "success",
182         "xml": "<outcome value='success'>\n",
183         "comments": "",
184         "outputs": 1,
185         "x": 825.8148918151855,
186         "y": 493.26725220680237,
187         "z": "cab86701.408c88",
188         "wires": [
189             [
190                 "cae924d0.c91d68"
191             ]
192         ]
193     },
194     {
195         "id": "e3d80d76.f38b6",
196         "type": "not-found",
197         "name": "not-found",
198         "xml": "<outcome value='not-found'>\n",
199         "comments": "",
200         "outputs": 1,
201         "x": 846.837329864502,
202         "y": 900.432332418859,
203         "z": "cab86701.408c88",
204         "wires": [
205             [
206                 "e5182ef1.2930a"
207             ]
208         ]
209     },
210     {
211         "id": "408d7749.7bfef8",
212         "type": "failure",
213         "name": "failure",
214         "xml": "<outcome value='failure'>\n",
215         "comments": "",
216         "outputs": 1,
217         "x": 837.8373794555664,
218         "y": 868.9323581680655,
219         "z": "cab86701.408c88",
220         "wires": [
221             [
222                 "e5182ef1.2930a"
223             ]
224         ]
225     },
226     {
227         "id": "a26d7c72.44fcc",
228         "type": "success",
229         "name": "success",
230         "xml": "<outcome value='success'>\n",
231         "comments": "",
232         "outputs": 1,
233         "x": 841.5874176025391,
234         "y": 839.2894630432129,
235         "z": "cab86701.408c88",
236         "wires": [
237             [
238                 "e6e17eb6.e762c"
239             ]
240         ]
241     },
242     {
243         "id": "e5182ef1.2930a",
244         "type": "returnFailure",
245         "name": "return failure",
246         "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",
247         "comments": "",
248         "x": 1007.5874176025391,
249         "y": 869.6823820099235,
250         "z": "cab86701.408c88",
251         "wires": []
252     },
253     {
254         "id": "cae924d0.c91d68",
255         "type": "block",
256         "name": "block: atomic",
257         "xml": "<block atomic=\"true\">\n",
258         "atomic": "false",
259         "comments": "",
260         "outputs": 1,
261         "x": 1006.8148460388184,
262         "y": 493.7672016620636,
263         "z": "cab86701.408c88",
264         "wires": [
265             [
266                 "a06def86.57a78",
267                 "2d0ecbe9.d56c34"
268             ]
269         ]
270     },
271     {
272         "id": "a06def86.57a78",
273         "type": "switchNode",
274         "name": "switch sz length",
275         "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
276         "comments": "",
277         "outputs": 1,
278         "x": 1252.6720924377441,
279         "y": 528.052964925766,
280         "z": "cab86701.408c88",
281         "wires": [
282             [
283                 "ef02f832.92b468"
284             ]
285         ]
286     },
287     {
288         "id": "ef02f832.92b468",
289         "type": "other",
290         "name": "outcome 1",
291         "xml": "<outcome value='1'>\n",
292         "comments": "",
293         "outputs": 1,
294         "x": 1443.6720962524414,
295         "y": 528.0529625415802,
296         "z": "cab86701.408c88",
297         "wires": [
298             [
299                 "6ff8e752.374018"
300             ]
301         ]
302     },
303     {
304         "id": "b7d42ce2.9a481",
305         "type": "set",
306         "name": "set sz-ar from get",
307         "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
308         "comments": "",
309         "x": 1843.5292320251465,
310         "y": 528.6243867874146,
311         "z": "cab86701.408c88",
312         "wires": []
313     },
314     {
315         "id": "6ff8e752.374018",
316         "type": "block",
317         "name": "block: atomic",
318         "xml": "<block atomic='true'>\n",
319         "atomic": "false",
320         "comments": "",
321         "outputs": 1,
322         "x": 1614.5290794372559,
323         "y": 528.6244316101074,
324         "z": "cab86701.408c88",
325         "wires": [
326             [
327                 "b7d42ce2.9a481",
328                 "63e31730.e27918",
329                 "d8d35b13.b628f8"
330             ]
331         ]
332     },
333     {
334         "id": "63e31730.e27918",
335         "type": "set",
336         "name": "set oper-status",
337         "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",
338         "comments": "",
339         "x": 1841.5294761657715,
340         "y": 596.0529508590698,
341         "z": "cab86701.408c88",
342         "wires": []
343     },
344     {
345         "id": "bed5b961.bd6788",
346         "type": "comment",
347         "name": "GET security-zone-allotted-resource from mdsal",
348         "info": "",
349         "comments": "",
350         "x": 593.8148155212402,
351         "y": 457.7671926021576,
352         "z": "cab86701.408c88",
353         "wires": []
354     },
355     {
356         "id": "d8d35b13.b628f8",
357         "type": "switchNode",
358         "name": "switch order-status",
359         "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
360         "comments": "",
361         "outputs": 1,
362         "x": 1851.52925491333,
363         "y": 561.6243848800659,
364         "z": "cab86701.408c88",
365         "wires": [
366             [
367                 "55b36fbc.52943",
368                 "19d63441.492dec"
369             ]
370         ]
371     },
372     {
373         "id": "55b36fbc.52943",
374         "type": "outcome",
375         "name": "outcome Created",
376         "xml": "<outcome value='Created'>\n",
377         "comments": "",
378         "outputs": 1,
379         "x": 2063.1292114257812,
380         "y": 522.6243848800659,
381         "z": "cab86701.408c88",
382         "wires": [
383             [
384                 "27c47993.316bb6"
385             ]
386         ]
387     },
388     {
389         "id": "19d63441.492dec",
390         "type": "outcome",
391         "name": "outcome Other",
392         "xml": "<outcome value='Other'>\n",
393         "comments": "",
394         "outputs": 1,
395         "x": 2088.8435859680176,
396         "y": 558.052975654602,
397         "z": "cab86701.408c88",
398         "wires": [
399             [
400                 "27c47993.316bb6"
401             ]
402         ]
403     },
404     {
405         "id": "f3aeefda.cd911",
406         "type": "comment",
407         "name": "Set allotted-resource-identifiers",
408         "info": "",
409         "comments": "",
410         "x": 549.3386383056641,
411         "y": 548.3386459350586,
412         "z": "cab86701.408c88",
413         "wires": []
414     },
415     {
416         "id": "2d0ecbe9.d56c34",
417         "type": "set",
418         "name": "save backup copy of mdsal-ar for rollback",
419         "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
420         "comments": "",
421         "x": 1332.3864250183105,
422         "y": 493.76729369163513,
423         "z": "cab86701.408c88",
424         "wires": []
425     },
426     {
427         "id": "33868ac7.abca26",
428         "type": "comment",
429         "name": "Create urls for restapi",
430         "info": "",
431         "comments": "",
432         "x": 504.9576606750488,
433         "y": 362.6243562698364,
434         "z": "cab86701.408c88",
435         "wires": []
436     },
437     {
438         "id": "e6e17eb6.e762c",
439         "type": "block",
440         "name": "block",
441         "xml": "<block>\n",
442         "atomic": "false",
443         "comments": "",
444         "outputs": 1,
445         "x": 983.2433853149414,
446         "y": 835.481632232666,
447         "z": "cab86701.408c88",
448         "wires": [
449             []
450         ]
451     },
452     {
453         "id": "2b3604ae.317ccc",
454         "type": "comment",
455         "name": "TO DO: vnf/put parent",
456         "info": "",
457         "comments": "",
458         "x": 517.2433776855468,
459         "y": 769.4815540313718,
460         "z": "cab86701.408c88",
461         "wires": []
462     },
463     {
464         "id": "af4ea7a7.5e99e8",
465         "type": "execute",
466         "name": "execute getTime",
467         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
468         "comments": "",
469         "outputs": 1,
470         "x": 491.24338150024414,
471         "y": 665.4815549850464,
472         "z": "cab86701.408c88",
473         "wires": [
474             []
475         ]
476     },
477     {
478         "id": "c68f9183.6fe9",
479         "type": "other",
480         "name": "other",
481         "xml": "<outcome value='Other'>\n",
482         "comments": "",
483         "outputs": 1,
484         "x": 825.5766868591309,
485         "y": 529.4814250469208,
486         "z": "cab86701.408c88",
487         "wires": [
488             [
489                 "336a662a.c1025a"
490             ]
491         ]
492     },
493     {
494         "id": "336a662a.c1025a",
495         "type": "block",
496         "name": "block: atomic",
497         "xml": "<block atomic=\"true\">\n",
498         "atomic": "false",
499         "comments": "",
500         "outputs": 1,
501         "x": 1005.5766372680664,
502         "y": 530.1479756832123,
503         "z": "cab86701.408c88",
504         "wires": [
505             []
506         ]
507     },
508     {
509         "id": "a078b88c.279298",
510         "type": "set",
511         "name": "set id",
512         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$security-zone-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"security-zone-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$security-zone-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$security-zone-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$security-zone-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$security-zone-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$security-zone-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.' value=\"`$security-zone-topology-operation-input.security-zone-request-input.` \" />",
513         "comments": "",
514         "x": 474.24342346191406,
515         "y": 585.1481666564941,
516         "z": "cab86701.408c88",
517         "wires": []
518     },
519     {
520         "id": "27c47993.316bb6",
521         "type": "block",
522         "name": "block",
523         "xml": "<block>\n",
524         "atomic": "false",
525         "comments": "",
526         "outputs": 1,
527         "x": 2277.5997276306152,
528         "y": 524.0000190734863,
529         "z": "cab86701.408c88",
530         "wires": [
531             []
532         ]
533     },
534     {
535         "id": "1469e91d.b421d7",
536         "type": "execute",
537         "name": "execute RestApiCallNode - PUT AR by id",
538         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sz.templatefile`\" />\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='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
539         "comments": "",
540         "outputs": 1,
541         "x": 574.0000152587891,
542         "y": 850.0000247955322,
543         "z": "cab86701.408c88",
544         "wires": [
545             [
546                 "a26d7c72.44fcc",
547                 "408d7749.7bfef8",
548                 "e3d80d76.f38b6"
549             ]
550         ]
551     },
552     {
553         "id": "4a2606ec.007d08",
554         "type": "set",
555         "name": "clear sz-ar-assignments",
556         "xml": "<set>\n<parameter name='sz-ar-assignments.' value=\"\" />\n\n\n\n",
557         "comments": "",
558         "x": 518,
559         "y": 736,
560         "z": "cab86701.408c88",
561         "wires": []
562     }
563 ]