Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / Dispatcher-DG / APPC-API_2.0.0.0_method_VNF_Snapshot.json
1 [
2   {
3     "id": "ff6e6220.ef272",
4     "type": "comment",
5     "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",
6     "info": "",
7     "comments": "",
8     "x": 259.75,
9     "y": 590.9999923706055,
10     "z": "17bb73d2.dd297c",
11     "wires": []
12   },
13   {
14     "id": "66552f09.5bfb9",
15     "type": "method",
16     "name": "Generic_Snapshot_1610",
17     "xml": "<method rpc='VNF_Snapshot' mode='sync'>\n",
18     "comments": "",
19     "outputs": 1,
20     "x": 233.25001525878906,
21     "y": 308,
22     "z": "17bb73d2.dd297c",
23     "wires": [
24       [
25         "5e66c189.09a2d"
26       ]
27     ]
28   },
29   {
30     "id": "1ee152f2.68166d",
31     "type": "service-logic",
32     "name": "APPC-API 2.0.0.0",
33     "module": "APPC-API",
34     "version": "2.0.0.0",
35     "comments": "",
36     "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='APPC-API' version='2.0.0.0'>",
37     "outputs": 1,
38     "x": 233.25001525878906,
39     "y": 235,
40     "z": "17bb73d2.dd297c",
41     "wires": [
42       [
43         "66552f09.5bfb9"
44       ]
45     ]
46   },
47   {
48     "id": "bc49eb6a.380068",
49     "type": "dgstart",
50     "name": "DGSTART",
51     "outputs": 1,
52     "x": 199.25001525878906,
53     "y": 141,
54     "z": "17bb73d2.dd297c",
55     "wires": [
56       [
57         "1ee152f2.68166d"
58       ]
59     ]
60   },
61   {
62     "id": "af0a8fe0.da1b7",
63     "type": "execute",
64     "name": "execute_getVNF_Hierarchy",
65     "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",
66     "comments": "",
67     "outputs": 1,
68     "x": 233.25001525878906,
69     "y": 537,
70     "z": "17bb73d2.dd297c",
71     "wires": [
72       [
73         "12d4d1c5.960c3e",
74         "7e33d3b6.7154dc",
75         "90b99458.d8a878"
76       ]
77     ]
78   },
79   {
80     "id": "12d4d1c5.960c3e",
81     "type": "success",
82     "name": "success",
83     "xml": "<outcome value='success'>\n",
84     "comments": "",
85     "outputs": 1,
86     "x": 470.25001525878906,
87     "y": 537,
88     "z": "17bb73d2.dd297c",
89     "wires": [
90       [
91         "39db95fa.9b98fa"
92       ]
93     ]
94   },
95   {
96     "id": "d5a8df0e.172fc",
97     "type": "block",
98     "name": "block : atomic",
99     "xml": "<block atomic='true'>\n",
100     "atomic": "true",
101     "comments": "",
102     "outputs": 1,
103     "x": 931.2500762939453,
104     "y": 794.0000610351562,
105     "z": "17bb73d2.dd297c",
106     "wires": [
107       [
108         "3b9af4e2.33c62c"
109       ]
110     ]
111   },
112   {
113     "id": "7e33d3b6.7154dc",
114     "type": "failure",
115     "name": "failure",
116     "xml": "<outcome value='failure'>\n",
117     "comments": "",
118     "outputs": 1,
119     "x": 763.2500152587891,
120     "y": 376,
121     "z": "17bb73d2.dd297c",
122     "wires": [
123       [
124         "b1613d32.71d45"
125       ]
126     ]
127   },
128   {
129     "id": "5928eca4.e76c24",
130     "type": "returnFailure",
131     "name": "return failure",
132     "xml": "<return status='failure'>\n",
133     "comments": "",
134     "x": 1259.2500228881836,
135     "y": 428.99999618530273,
136     "z": "17bb73d2.dd297c",
137     "wires": []
138   },
139   {
140     "id": "b017daad.296d58",
141     "type": "switchNode",
142     "name": "switch",
143     "xml": "<switch test='`$VNF.VMCount`'>\n",
144     "comments": "",
145     "outputs": 1,
146     "x": 718.2500457763672,
147     "y": 704,
148     "z": "17bb73d2.dd297c",
149     "wires": [
150       [
151         "74042ec0.4106",
152         "ae5fd24a.9b418"
153       ]
154     ]
155   },
156   {
157     "id": "74042ec0.4106",
158     "type": "other",
159     "name": "outcome_0",
160     "xml": "<outcome value='0'>\n",
161     "comments": "",
162     "outputs": 1,
163     "x": 796.2500152587891,
164     "y": 622,
165     "z": "17bb73d2.dd297c",
166     "wires": [
167       [
168         "eb4eeb9.a81d318"
169       ]
170     ]
171   },
172   {
173     "id": "ae5fd24a.9b418",
174     "type": "other",
175     "name": "other",
176     "xml": "<outcome value='Other'>\n",
177     "comments": "",
178     "outputs": 1,
179     "x": 780.2500152587891,
180     "y": 793,
181     "z": "17bb73d2.dd297c",
182     "wires": [
183       [
184         "d5a8df0e.172fc"
185       ]
186     ]
187   },
188   {
189     "id": "39db95fa.9b98fa",
190     "type": "switchNode",
191     "name": "switch",
192     "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
193     "comments": "",
194     "outputs": 1,
195     "x": 607.2500762939453,
196     "y": 537,
197     "z": "17bb73d2.dd297c",
198     "wires": [
199       [
200         "dc55fcb7.a5b3c",
201         "d75a8b25.9fe778"
202       ]
203     ]
204   },
205   {
206     "id": "dc55fcb7.a5b3c",
207     "type": "outcome",
208     "name": "SUCCESS",
209     "xml": "<outcome value='SUCCESS'>\n",
210     "comments": "",
211     "outputs": 1,
212     "x": 572.2500152587891,
213     "y": 704,
214     "z": "17bb73d2.dd297c",
215     "wires": [
216       [
217         "b017daad.296d58"
218       ]
219     ]
220   },
221   {
222     "id": "d75a8b25.9fe778",
223     "type": "outcome",
224     "name": "FAILURE",
225     "xml": "<outcome value='FAILURE'>\n",
226     "comments": "",
227     "outputs": 1,
228     "x": 775.2500152587891,
229     "y": 466,
230     "z": "17bb73d2.dd297c",
231     "wires": [
232       [
233         "b1613d32.71d45"
234       ]
235     ]
236   },
237   {
238     "id": "36ef2784.6cc318",
239     "type": "returnFailure",
240     "name": "return failure",
241     "xml": "<return status='failure'>\n",
242     "comments": "",
243     "x": 1163.2500457763672,
244     "y": 594,
245     "z": "17bb73d2.dd297c",
246     "wires": []
247   },
248   {
249     "id": "b1613d32.71d45",
250     "type": "block",
251     "name": "block : atomic",
252     "xml": "<block atomic='true'>",
253     "atomic": "true",
254     "comments": "",
255     "outputs": 1,
256     "x": 972.2500610351562,
257     "y": 377.00000381469727,
258     "z": "17bb73d2.dd297c",
259     "wires": [
260       [
261         "5928eca4.e76c24",
262         "e2eaef09.070be",
263         "fd0a971.5208268"
264       ]
265     ]
266   },
267   {
268     "id": "e2eaef09.070be",
269     "type": "execute",
270     "name": "execute_SendUEBEvent",
271     "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Exception in getting VNF Hierachy\"/>\n",
272     "comments": "",
273     "outputs": 1,
274     "x": 1229.250015258789,
275     "y": 307,
276     "z": "17bb73d2.dd297c",
277     "wires": [
278       []
279     ]
280   },
281   {
282     "id": "eb4eeb9.a81d318",
283     "type": "block",
284     "name": "block : atomic",
285     "xml": "<block atomic='true'>",
286     "atomic": "true",
287     "comments": "",
288     "outputs": 1,
289     "x": 917.2500152587891,
290     "y": 546,
291     "z": "17bb73d2.dd297c",
292     "wires": [
293       [
294         "36ef2784.6cc318",
295         "bf7f84ce.5a7938",
296         "bdcf415a.45ed5"
297       ]
298     ]
299   },
300   {
301     "id": "bf7f84ce.5a7938",
302     "type": "execute",
303     "name": "execute_SendUEBEvent",
304     "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name='output.status.message' value=\"VM Count is 0\"/>\n\n",
305     "comments": "",
306     "outputs": 1,
307     "x": 1233.250015258789,
308     "y": 477.00002002716064,
309     "z": "17bb73d2.dd297c",
310     "wires": [
311       []
312     ]
313   },
314   {
315     "id": "3b9af4e2.33c62c",
316     "type": "execute",
317     "name": "execute_SnapshotStack",
318     "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='snapshotStack' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$input.identity-url`\" />\n <parameter name=\"org.onap.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>",
319     "comments": "",
320     "outputs": 1,
321     "x": 1150.250015258789,
322     "y": 794,
323     "z": "17bb73d2.dd297c",
324     "wires": [
325       [
326         "2b3d7e9b.51bbe2",
327         "88b7c652.0ec9d8",
328         "2497760f.ec3caa"
329       ]
330     ]
331   },
332   {
333     "id": "2b3d7e9b.51bbe2",
334     "type": "outcome",
335     "name": "success",
336     "xml": "<outcome value='success'>\n",
337     "comments": "",
338     "outputs": 1,
339     "x": 1311.250015258789,
340     "y": 895,
341     "z": "17bb73d2.dd297c",
342     "wires": [
343       [
344         "81c1ec58.459ae"
345       ]
346     ]
347   },
348   {
349     "id": "88b7c652.0ec9d8",
350     "type": "failure",
351     "name": "failure",
352     "xml": "<outcome value='failure'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 1293.250015258789,
356     "y": 701,
357     "z": "17bb73d2.dd297c",
358     "wires": [
359       [
360         "f66b9736.cfaab8"
361       ]
362     ]
363   },
364   {
365     "id": "f66b9736.cfaab8",
366     "type": "block",
367     "name": "block : atomic",
368     "xml": "<block atomic='true'>",
369     "atomic": "true",
370     "comments": "",
371     "outputs": 1,
372     "x": 1542.6786041259766,
373     "y": 794.142822265625,
374     "z": "17bb73d2.dd297c",
375     "wires": [
376       [
377         "8a2adc3b.adcda",
378         "32071474.80d0fc",
379         "eae86873.6b23d8"
380       ]
381     ]
382   },
383   {
384     "id": "8a2adc3b.adcda",
385     "type": "execute",
386     "name": "execute_SendUEBEvent",
387     "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`'Error occured during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n",
388     "comments": "",
389     "outputs": 1,
390     "x": 1817.250015258789,
391     "y": 712,
392     "z": "17bb73d2.dd297c",
393     "wires": [
394       [
395         "a58ca5df.f45298"
396       ]
397     ]
398   },
399   {
400     "id": "a58ca5df.f45298",
401     "type": "success",
402     "name": "success",
403     "xml": "<outcome value='success'>\n",
404     "comments": "",
405     "outputs": 1,
406     "x": 2013.9168434143066,
407     "y": 712.333381652832,
408     "z": "17bb73d2.dd297c",
409     "wires": [
410       []
411     ]
412   },
413   {
414     "id": "2497760f.ec3caa",
415     "type": "other",
416     "name": "other",
417     "xml": "<outcome value='Other'>\n",
418     "comments": "",
419     "outputs": 1,
420     "x": 1349.250015258789,
421     "y": 794.0001220703125,
422     "z": "17bb73d2.dd297c",
423     "wires": [
424       [
425         "f66b9736.cfaab8"
426       ]
427     ]
428   },
429   {
430     "id": "90b99458.d8a878",
431     "type": "other",
432     "name": "other",
433     "xml": "<outcome value='Other'>\n",
434     "comments": "",
435     "outputs": 1,
436     "x": 778.2500152587891,
437     "y": 296,
438     "z": "17bb73d2.dd297c",
439     "wires": [
440       [
441         "b1613d32.71d45"
442       ]
443     ]
444   },
445   {
446     "id": "32071474.80d0fc",
447     "type": "returnFailure",
448     "name": "return failure",
449     "xml": "<return status='failure'>\n",
450     "comments": "",
451     "x": 1782.2499923706055,
452     "y": 831.0000247955322,
453     "z": "17bb73d2.dd297c",
454     "wires": []
455   },
456   {
457     "id": "5e66c189.09a2d",
458     "type": "execute",
459     "name": "execute: flatAndAddToContext",
460     "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
461     "comments": "",
462     "outputs": 1,
463     "x": 188.9166717529297,
464     "y": 395.8888854980469,
465     "z": "17bb73d2.dd297c",
466     "wires": [
467       [
468         "952f9338.7cfd6",
469         "3427840b.e5926c"
470       ]
471     ]
472   },
473   {
474     "id": "952f9338.7cfd6",
475     "type": "success",
476     "name": "success",
477     "xml": "<outcome value='success'>\n",
478     "comments": "",
479     "outputs": 1,
480     "x": 233.9167022705078,
481     "y": 459.8888854980469,
482     "z": "17bb73d2.dd297c",
483     "wires": [
484       [
485         "af0a8fe0.da1b7"
486       ]
487     ]
488   },
489   {
490     "id": "3427840b.e5926c",
491     "type": "other",
492     "name": "other",
493     "xml": "<outcome value='Other'>\n",
494     "comments": "",
495     "outputs": 1,
496     "x": 444.9167022705078,
497     "y": 336.8888854980469,
498     "z": "17bb73d2.dd297c",
499     "wires": [
500       []
501     ]
502   },
503   {
504     "id": "fe324b44.d467d8",
505     "type": "returnSuccess",
506     "name": "return success",
507     "xml": "<return status='success'>",
508     "comments": "",
509     "x": 1715.6786727905273,
510     "y": 991.5715913772583,
511     "z": "17bb73d2.dd297c",
512     "wires": []
513   },
514   {
515     "id": "fd0a971.5208268",
516     "type": "execute",
517     "name": "Set failure code and message",
518     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\" />\n",
519     "comments": "",
520     "outputs": 1,
521     "x": 1256.7501907348633,
522     "y": 370.7499990463257,
523     "z": "17bb73d2.dd297c",
524     "wires": [
525       []
526     ]
527   },
528   {
529     "id": "bdcf415a.45ed5",
530     "type": "execute",
531     "name": "Set failure code and message",
532     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
533     "comments": "",
534     "outputs": 1,
535     "x": 1208.7501220703125,
536     "y": 540.75,
537     "z": "17bb73d2.dd297c",
538     "wires": [
539       []
540     ]
541   },
542   {
543     "id": "eae86873.6b23d8",
544     "type": "execute",
545     "name": "Set failure code and message",
546     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`'Error occured during snapshot of Stack '+ $VNF.heat-stack-id`\"/>\n",
547     "comments": "",
548     "outputs": 1,
549     "x": 1797.750144958496,
550     "y": 774.7500247955322,
551     "z": "17bb73d2.dd297c",
552     "wires": [
553       []
554     ]
555   },
556   {
557     "id": "832572c6.ef7df",
558     "type": "execute",
559     "name": "Set output payload, success code and message",
560     "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"Success\" />\n<parameter name='output.payload' value=\"`'snapshot.id :' + $output.snapshot.id`\"/>\n\n",
561     "comments": "",
562     "outputs": 1,
563     "x": 1803.7501525878906,
564     "y": 915.7500114440918,
565     "z": "17bb73d2.dd297c",
566     "wires": [
567       []
568     ]
569   },
570   {
571     "id": "81c1ec58.459ae",
572     "type": "block",
573     "name": "block : atomic",
574     "xml": "<block atomic='true'>",
575     "atomic": "true",
576     "comments": "",
577     "outputs": 1,
578     "x": 1513.7500839233398,
579     "y": 950.750057220459,
580     "z": "17bb73d2.dd297c",
581     "wires": [
582       [
583         "832572c6.ef7df",
584         "fe324b44.d467d8"
585       ]
586     ]
587   }
588 ]