Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / APPC / APPC_method_topology-operation-all_2.0.0.json
1 [
2     {
3         "id": "7a758f5d.36f2a",
4         "type": "service-logic",
5         "name": "APPC 2.0.0",
6         "module": "APPC",
7         "version": "2.0.0",
8         "comments": "",
9         "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' version='2.0.0'>",
10         "outputs": 1,
11         "x": 140,
12         "y": 94,
13         "z": "d1a301d8.219aa8",
14         "wires": [
15             [
16                 "1a700941.9439d7"
17             ]
18         ]
19     },
20     {
21         "id": "9c06c4b3.52782",
22         "type": "dgstart",
23         "name": "DGSTART",
24         "outputs": 1,
25         "x": 147,
26         "y": 44,
27         "z": "d1a301d8.219aa8",
28         "wires": [
29             [
30                 "7a758f5d.36f2a"
31             ]
32         ]
33     },
34     {
35         "id": "3c6a4d55.f97af2",
36         "type": "switchNode",
37         "name": "action",
38         "xml": "<switch test='`$org.onap.appc.action`'>\n",
39         "comments": "What method should we try to call. Closely maps to __action__Server()",
40         "outputs": 1,
41         "x": 138,
42         "y": 176,
43         "z": "d1a301d8.219aa8",
44         "wires": [
45             [
46                 "2c19128d.9d02d6",
47                 "8be03d03.7d96b",
48                 "dd9e6d46.07b738",
49                 "6fb02e14.175a68",
50                 "b08d9f4.1b17fe",
51                 "291bda8a.1c712e",
52                 "2166e9a9.37316e"
53             ]
54         ]
55     },
56     {
57         "id": "2c19128d.9d02d6",
58         "type": "outcome",
59         "name": "restart",
60         "xml": "<outcome value='restart'>\n",
61         "comments": "",
62         "outputs": 1,
63         "x": 293,
64         "y": 191,
65         "z": "d1a301d8.219aa8",
66         "wires": [
67             [
68                 "a9607cbc.3e9d9"
69             ]
70         ]
71     },
72     {
73         "id": "8be03d03.7d96b",
74         "type": "outcome",
75         "name": "rebuild",
76         "xml": "<outcome value='rebuild'>\n",
77         "comments": "",
78         "outputs": 1,
79         "x": 304.25,
80         "y": 317,
81         "z": "d1a301d8.219aa8",
82         "wires": [
83             [
84                 "aa907476.8ca3a8"
85             ]
86         ]
87     },
88     {
89         "id": "56bd2e0d.61dd88",
90         "type": "returnFailure",
91         "name": "Unknown Action",
92         "xml": "<return status='failure'>\n<parameter name='error-code' value='404' />\n<parameter name='error-message' value='Unknown action specified' />\n",
93         "comments": "",
94         "x": 911.75,
95         "y": 801,
96         "z": "d1a301d8.219aa8",
97         "wires": []
98     },
99     {
100         "id": "a9607cbc.3e9d9",
101         "type": "execute",
102         "name": "restartServer()",
103         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
104         "comments": "",
105         "outputs": 1,
106         "x": 456,
107         "y": 193,
108         "z": "d1a301d8.219aa8",
109         "wires": [
110             [
111                 "50d932ab.8cca84",
112                 "ebcec5e2.930378"
113             ]
114         ]
115     },
116     {
117         "id": "50d932ab.8cca84",
118         "type": "success",
119         "name": "success",
120         "xml": "<outcome value='success'>\n",
121         "comments": "",
122         "outputs": 1,
123         "x": 605,
124         "y": 194,
125         "z": "d1a301d8.219aa8",
126         "wires": [
127             [
128                 "517fd692.1c6f3"
129             ]
130         ]
131     },
132     {
133         "id": "517fd692.1c6f3",
134         "type": "returnSuccess",
135         "name": "return success",
136         "xml": "<return status='success'>\n",
137         "comments": "",
138         "x": 948,
139         "y": 318,
140         "z": "d1a301d8.219aa8",
141         "wires": []
142     },
143     {
144         "id": "cb7f2c34.1b0738",
145         "type": "returnFailure",
146         "name": "return failure",
147         "xml": "<return status='failure'>\n<!--\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='failed' />\n-->",
148         "comments": "",
149         "x": 946,
150         "y": 494,
151         "z": "d1a301d8.219aa8",
152         "wires": []
153     },
154     {
155         "id": "aa907476.8ca3a8",
156         "type": "execute",
157         "name": "rebuildServer()",
158         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
159         "comments": "",
160         "outputs": 1,
161         "x": 467,
162         "y": 318,
163         "z": "d1a301d8.219aa8",
164         "wires": [
165             [
166                 "342e7005.3e2bd8",
167                 "7f14a01.4ac3e6"
168             ]
169         ]
170     },
171     {
172         "id": "342e7005.3e2bd8",
173         "type": "success",
174         "name": "success",
175         "xml": "<outcome value='success'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 617,
179         "y": 317,
180         "z": "d1a301d8.219aa8",
181         "wires": [
182             [
183                 "517fd692.1c6f3"
184             ]
185         ]
186     },
187     {
188         "id": "1a700941.9439d7",
189         "type": "method",
190         "name": "method",
191         "xml": "<method rpc='topology-operation-all' mode='sync'>\n",
192         "comments": "",
193         "outputs": 1,
194         "x": 298,
195         "y": 94,
196         "z": "d1a301d8.219aa8",
197         "wires": [
198             [
199                 "3c6a4d55.f97af2"
200             ]
201         ]
202     },
203     {
204         "id": "dd9e6d46.07b738",
205         "type": "outcome",
206         "name": "migrate",
207         "xml": "<outcome value='migrate'>\n",
208         "comments": "",
209         "outputs": 1,
210         "x": 306.75,
211         "y": 437,
212         "z": "d1a301d8.219aa8",
213         "wires": [
214             [
215                 "3355fed0.38abf2"
216             ]
217         ]
218     },
219     {
220         "id": "3355fed0.38abf2",
221         "type": "execute",
222         "name": "migrateServer()",
223         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
224         "comments": "",
225         "outputs": 1,
226         "x": 469.75,
227         "y": 436,
228         "z": "d1a301d8.219aa8",
229         "wires": [
230             [
231                 "af8c164c.f9e408",
232                 "f2b9661b.faf0c8"
233             ]
234         ]
235     },
236     {
237         "id": "af8c164c.f9e408",
238         "type": "success",
239         "name": "success",
240         "xml": "<outcome value='success'>\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 625.25,
244         "y": 436,
245         "z": "d1a301d8.219aa8",
246         "wires": [
247             [
248                 "517fd692.1c6f3"
249             ]
250         ]
251     },
252     {
253         "id": "f2b9661b.faf0c8",
254         "type": "other",
255         "name": "other",
256         "xml": "<outcome value='Other'>\n",
257         "comments": "",
258         "outputs": 1,
259         "x": 621.25,
260         "y": 476,
261         "z": "d1a301d8.219aa8",
262         "wires": [
263             [
264                 "cb7f2c34.1b0738"
265             ]
266         ]
267     },
268     {
269         "id": "7f14a01.4ac3e6",
270         "type": "other",
271         "name": "other",
272         "xml": "<outcome value='Other'>\n",
273         "comments": "",
274         "outputs": 1,
275         "x": 613,
276         "y": 355,
277         "z": "d1a301d8.219aa8",
278         "wires": [
279             [
280                 "cb7f2c34.1b0738"
281             ]
282         ]
283     },
284     {
285         "id": "c09eb09e.d88578",
286         "type": "other",
287         "name": "other",
288         "xml": "<outcome value='Other'>\n",
289         "comments": "",
290         "outputs": 1,
291         "x": 620.25,
292         "y": 716,
293         "z": "d1a301d8.219aa8",
294         "wires": [
295             [
296                 "5cd5b3a.00a834c"
297             ]
298         ]
299     },
300     {
301         "id": "ac9fdda8.635c5",
302         "type": "success",
303         "name": "success",
304         "xml": "<outcome value='success'>\n",
305         "comments": "",
306         "outputs": 1,
307         "x": 623.25,
308         "y": 680,
309         "z": "d1a301d8.219aa8",
310         "wires": [
311             [
312                 "5cd5b3a.00a834c"
313             ]
314         ]
315     },
316     {
317         "id": "e4197510.21f14",
318         "type": "execute",
319         "name": "evacuateServer()",
320         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
321         "comments": "",
322         "outputs": 1,
323         "x": 467.75,
324         "y": 680,
325         "z": "d1a301d8.219aa8",
326         "wires": [
327             [
328                 "c09eb09e.d88578",
329                 "ac9fdda8.635c5"
330             ]
331         ]
332     },
333     {
334         "id": "6fb02e14.175a68",
335         "type": "outcome",
336         "name": "migrate",
337         "xml": "<outcome value='evacuate'>\n",
338         "comments": "",
339         "outputs": 1,
340         "x": 304.75,
341         "y": 681,
342         "z": "d1a301d8.219aa8",
343         "wires": [
344             [
345                 "e4197510.21f14"
346             ]
347         ]
348     },
349     {
350         "id": "ebcec5e2.930378",
351         "type": "failure",
352         "name": "failure",
353         "xml": "<outcome value='failure'>\n",
354         "comments": "",
355         "outputs": 1,
356         "x": 608.25,
357         "y": 240,
358         "z": "d1a301d8.219aa8",
359         "wires": [
360             [
361                 "cb7f2c34.1b0738"
362             ]
363         ]
364     },
365     {
366         "id": "5cd5b3a.00a834c",
367         "type": "returnFailure",
368         "name": "Not Yet Implemented",
369         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='This action is not yet implemented' />\n",
370         "comments": "",
371         "x": 923.25,
372         "y": 699,
373         "z": "d1a301d8.219aa8",
374         "wires": []
375     },
376     {
377         "id": "b08d9f4.1b17fe",
378         "type": "outcome",
379         "name": "snapshot",
380         "xml": "<outcome value='snapshot'>\n",
381         "comments": "",
382         "outputs": 1,
383         "x": 307.25,
384         "y": 549,
385         "z": "d1a301d8.219aa8",
386         "wires": [
387             [
388                 "71679082.b68048"
389             ]
390         ]
391     },
392     {
393         "id": "71679082.b68048",
394         "type": "execute",
395         "name": "createSnapshot()",
396         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='createSnapshot'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
397         "comments": "",
398         "outputs": 1,
399         "x": 470.25,
400         "y": 548,
401         "z": "d1a301d8.219aa8",
402         "wires": [
403             [
404                 "ddb50ec9.42b61",
405                 "e37701d0.ff4a"
406             ]
407         ]
408     },
409     {
410         "id": "ddb50ec9.42b61",
411         "type": "success",
412         "name": "success",
413         "xml": "<outcome value='success'>\n",
414         "comments": "",
415         "outputs": 1,
416         "x": 625.75,
417         "y": 548,
418         "z": "d1a301d8.219aa8",
419         "wires": [
420             [
421                 "517fd692.1c6f3"
422             ]
423         ]
424     },
425     {
426         "id": "e37701d0.ff4a",
427         "type": "other",
428         "name": "other",
429         "xml": "<outcome value='Other'>\n",
430         "comments": "",
431         "outputs": 1,
432         "x": 621.75,
433         "y": 588,
434         "z": "d1a301d8.219aa8",
435         "wires": [
436             [
437                 "cb7f2c34.1b0738"
438             ]
439         ]
440     },
441     {
442         "id": "e3b1885c.6ba198",
443         "type": "success",
444         "name": "success",
445         "xml": "<outcome value='success'>\n",
446         "comments": "",
447         "outputs": 1,
448         "x": 987.25,
449         "y": 572,
450         "z": "d1a301d8.219aa8",
451         "wires": [
452             [
453                 "80007c3f.79526"
454             ]
455         ]
456     },
457     {
458         "id": "80007c3f.79526",
459         "type": "returnSuccess",
460         "name": "return success",
461         "xml": "<return status='success'>\n",
462         "comments": "",
463         "x": 1300.25,
464         "y": 633,
465         "z": "d1a301d8.219aa8",
466         "wires": []
467     },
468     {
469         "id": "4e5fecf4.18b5d4",
470         "type": "returnFailure",
471         "name": "return failure",
472         "xml": "<return status='failure'>\n<!--\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='failed' />\n-->",
473         "comments": "",
474         "x": 1310.25,
475         "y": 828,
476         "z": "d1a301d8.219aa8",
477         "wires": []
478     },
479     {
480         "id": "ac36b284.3e1bd8",
481         "type": "success",
482         "name": "success",
483         "xml": "<outcome value='success'>\n",
484         "comments": "",
485         "outputs": 1,
486         "x": 999.25,
487         "y": 695,
488         "z": "d1a301d8.219aa8",
489         "wires": [
490             [
491                 "80007c3f.79526"
492             ]
493         ]
494     },
495     {
496         "id": "36c70977.075d06",
497         "type": "outcome",
498         "name": "migrate",
499         "xml": "<outcome value='migrate'>\n",
500         "comments": "",
501         "outputs": 1,
502         "x": 689,
503         "y": 815,
504         "z": "d1a301d8.219aa8",
505         "wires": [
506             [
507                 "6c21a87b.083fa8"
508             ]
509         ]
510     },
511     {
512         "id": "6c21a87b.083fa8",
513         "type": "execute",
514         "name": "migrateServer()",
515         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
516         "comments": "",
517         "outputs": 1,
518         "x": 852,
519         "y": 814,
520         "z": "d1a301d8.219aa8",
521         "wires": [
522             [
523                 "c6e55d06.34f05",
524                 "8067dd14.127b68"
525             ]
526         ]
527     },
528     {
529         "id": "c6e55d06.34f05",
530         "type": "success",
531         "name": "success",
532         "xml": "<outcome value='success'>\n",
533         "comments": "",
534         "outputs": 1,
535         "x": 1007.5,
536         "y": 814,
537         "z": "d1a301d8.219aa8",
538         "wires": [
539             [
540                 "80007c3f.79526"
541             ]
542         ]
543     },
544     {
545         "id": "8067dd14.127b68",
546         "type": "other",
547         "name": "other",
548         "xml": "<outcome value='Other'>\n",
549         "comments": "",
550         "outputs": 1,
551         "x": 1003.5,
552         "y": 854,
553         "z": "d1a301d8.219aa8",
554         "wires": [
555             [
556                 "4e5fecf4.18b5d4"
557             ]
558         ]
559     },
560     {
561         "id": "5a72cf37.b27dc8",
562         "type": "other",
563         "name": "other",
564         "xml": "<outcome value='Other'>\n",
565         "comments": "",
566         "outputs": 1,
567         "x": 995.25,
568         "y": 733,
569         "z": "d1a301d8.219aa8",
570         "wires": [
571             [
572                 "4e5fecf4.18b5d4"
573             ]
574         ]
575     },
576     {
577         "id": "f06b20cc.093cf",
578         "type": "other",
579         "name": "other",
580         "xml": "<outcome value='Other'>\n",
581         "comments": "",
582         "outputs": 1,
583         "x": 1004.5,
584         "y": 970,
585         "z": "d1a301d8.219aa8",
586         "wires": [
587             [
588                 "2423b8c0.937798"
589             ]
590         ]
591     },
592     {
593         "id": "aa701723.a923d8",
594         "type": "success",
595         "name": "success",
596         "xml": "<outcome value='success'>\n",
597         "comments": "",
598         "outputs": 1,
599         "x": 1007.5,
600         "y": 934,
601         "z": "d1a301d8.219aa8",
602         "wires": [
603             [
604                 "2423b8c0.937798"
605             ]
606         ]
607     },
608     {
609         "id": "23a53072.a495a8",
610         "type": "execute",
611         "name": "evacuateServer()",
612         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$org.onap.appc.vmid`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$org.onap.appc.identity.url`\" />",
613         "comments": "",
614         "outputs": 1,
615         "x": 852,
616         "y": 934,
617         "z": "d1a301d8.219aa8",
618         "wires": [
619             [
620                 "aa701723.a923d8",
621                 "f06b20cc.093cf"
622             ]
623         ]
624     },
625     {
626         "id": "fc6990e.a41c27",
627         "type": "outcome",
628         "name": "migrate",
629         "xml": "<outcome value='evacuate'>\n",
630         "comments": "",
631         "outputs": 1,
632         "x": 689,
633         "y": 935,
634         "z": "d1a301d8.219aa8",
635         "wires": [
636             [
637                 "23a53072.a495a8"
638             ]
639         ]
640     },
641     {
642         "id": "ad4e7fd7.18b06",
643         "type": "failure",
644         "name": "failure",
645         "xml": "<outcome value='failure'>\n",
646         "comments": "",
647         "outputs": 1,
648         "x": 990.5,
649         "y": 618,
650         "z": "d1a301d8.219aa8",
651         "wires": [
652             [
653                 "4e5fecf4.18b5d4"
654             ]
655         ]
656     },
657     {
658         "id": "2423b8c0.937798",
659         "type": "returnFailure",
660         "name": "Not Yet Implemented",
661         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='This action is not yet implemented' />\n",
662         "comments": "",
663         "x": 1307.5,
664         "y": 953,
665         "z": "d1a301d8.219aa8",
666         "wires": []
667     },
668     {
669         "id": "291bda8a.1c712e",
670         "type": "other",
671         "name": "Unknown",
672         "xml": "<outcome value='Other'>\n",
673         "comments": "Unknown action provided. Fail",
674         "outputs": 1,
675         "x": 310.25,
676         "y": 801,
677         "z": "d1a301d8.219aa8",
678         "wires": [
679             [
680                 "56bd2e0d.61dd88"
681             ]
682         ]
683     },
684     {
685         "id": "2166e9a9.37316e",
686         "type": "other",
687         "name": "modifyConfig",
688         "xml": "<outcome value='modifyConfig'>\n",
689         "comments": "",
690         "outputs": 1,
691         "x": 97.60003662109375,
692         "y": 827.9198608398438,
693         "z": "d1a301d8.219aa8",
694         "wires": [
695             [
696                 "2a6a5cbd.5b01ac"
697             ]
698         ]
699     },
700     {
701         "id": "9585b4b9.8a925",
702         "type": "execute",
703         "name": "put",
704         "xml": "<execute plugin='org.onap.appc.adapter.rest.RestAdapter' method='commonPut' >\n<parameter name='org.onap.appc.instance.URI' value='`$org.onap.appc.configURL`'/>\n<parameter name='org.onap.appc.instance.requestBody' value='`$org.onap.appc.configJson`'/>\n<parameter name='org.onap.appc.instance.headers' value='{\"Content-type\":\"application/json\"}'/>\n<parameter name='org.onap.appc.instance.haveHeader' value='true'/>",
705         "comments": "",
706         "outputs": 1,
707         "x": 464.8887939453125,
708         "y": 954.1331787109375,
709         "z": "d1a301d8.219aa8",
710         "wires": [
711             [
712                 "31d65a7b.2f1536",
713                 "77aa00df.6d5f3"
714             ]
715         ]
716     },
717     {
718         "id": "77aa00df.6d5f3",
719         "type": "success",
720         "name": "success",
721         "xml": "<outcome value='success'>\n",
722         "comments": "",
723         "outputs": 1,
724         "x": 672.0000305175781,
725         "y": 859.1199798583984,
726         "z": "d1a301d8.219aa8",
727         "wires": [
728             [
729                 "517fd692.1c6f3"
730             ]
731         ]
732     },
733     {
734         "id": "31d65a7b.2f1536",
735         "type": "other",
736         "name": "other",
737         "xml": "<outcome value='Other'>\n",
738         "comments": "",
739         "outputs": 1,
740         "x": 672.7111511230469,
741         "y": 899.5866088867188,
742         "z": "d1a301d8.219aa8",
743         "wires": [
744             [
745                 "517fd692.1c6f3"
746             ]
747         ]
748     },
749     {
750         "id": "c5f8933.239dff",
751         "type": "execute",
752         "name": "delete",
753         "xml": "<execute plugin='org.onap.appc.adapter.rest.RestAdapter' method='commonDelete' >\n<parameter name='org.onap.appc.instance.URI' value='`$org.onap.appc.configURL`'/>\n<parameter name='org.onap.appc.instance.haveHeader' value='false'/>\n",
754         "comments": "",
755         "outputs": 1,
756         "x": 431.64447021484375,
757         "y": 889.9199829101562,
758         "z": "d1a301d8.219aa8",
759         "wires": [
760             []
761         ]
762     },
763     {
764         "id": "2a6a5cbd.5b01ac",
765         "type": "block",
766         "name": "block",
767         "xml": "<block>\n",
768         "atomic": "false",
769         "comments": "",
770         "outputs": 1,
771         "x": 228.066650390625,
772         "y": 888.4888610839844,
773         "z": "d1a301d8.219aa8",
774         "wires": [
775             [
776                 "c5f8933.239dff",
777                 "9585b4b9.8a925"
778             ]
779         ]
780     }
781 ]