Platform Hardening for DG Json files - Part 7
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_EvacuateVM.json
1 [\r
2     {\r
3         "id": "3226fb76.a7fe14",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 150.88333129882812,\r
8         "y": 102.88333129882812,\r
9         "z": "96b506dc.10c5e8",\r
10         "wires": [\r
11             [\r
12                 "f2b4466.fcec638"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "f2b4466.fcec638",\r
18         "type": "service-logic",\r
19         "name": "APPC 2.0.0",\r
20         "module": "APPC",\r
21         "version": "2.0.0",\r
22         "comments": "",\r
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='APPC' version='2.0.0'>",\r
24         "outputs": 1,\r
25         "x": 338.8833312988281,\r
26         "y": 103.88333129882812,\r
27         "z": "96b506dc.10c5e8",\r
28         "wires": [\r
29             [\r
30                 "205bcc30.cae044"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "205bcc30.cae044",\r
36         "type": "method",\r
37         "name": "EvacuateVM",\r
38         "xml": "<method rpc='EvacuateVM' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 567.88330078125,\r
42         "y": 104.88333129882812,\r
43         "z": "96b506dc.10c5e8",\r
44         "wires": [\r
45             [\r
46                 "213ddb60.68307c"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "d8525233.851af8",\r
52         "type": "execute",\r
53         "name": "execute: evacuate",\r
54         "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=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.onap.appc.tenant.id\" value=\"`$tenant-id`\" />\n<parameter name=\"org.onap.appc.rebuildvm\" value=\"`$rebuild-vm`\" />\n<parameter name=\"org.onap.appc.targethost.id\" value=\"`$targethost-id`\" />\n\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 729.88330078125,\r
58         "y": 271.88330078125,\r
59         "z": "96b506dc.10c5e8",\r
60         "wires": [\r
61             [\r
62                 "ec71f7ec.66516",\r
63                 "1f5ce9b3.25109e"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "ec71f7ec.66516",\r
69         "type": "success",\r
70         "name": "success",\r
71         "xml": "<outcome value='success'>\n",\r
72         "comments": "",\r
73         "outputs": 1,\r
74         "x": 924.88330078125,\r
75         "y": 316.88330078125,\r
76         "z": "96b506dc.10c5e8",\r
77         "wires": [\r
78             [\r
79                 "4a9ae26e.e2a654"\r
80             ]\r
81         ]\r
82     },\r
83     {\r
84         "id": "1f5ce9b3.25109e",\r
85         "type": "other",\r
86         "name": "other",\r
87         "xml": "<outcome value='Other'>\n",\r
88         "comments": "",\r
89         "outputs": 1,\r
90         "x": 913.88330078125,\r
91         "y": 194.88330078125,\r
92         "z": "96b506dc.10c5e8",\r
93         "wires": [\r
94             [\r
95                 "5eba654f.8cceec"\r
96             ]\r
97         ]\r
98     },\r
99     {\r
100         "id": "3d2c4844.2e8078",\r
101         "type": "returnSuccess",\r
102         "name": "return success",\r
103         "xml": "<return status='success'>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Request Processed Successfully' />",\r
104         "comments": "",\r
105         "x": 1372.88330078125,\r
106         "y": 290.88330078125,\r
107         "z": "96b506dc.10c5e8",\r
108         "wires": []\r
109     },\r
110     {\r
111         "id": "5572aa21.a402dc",\r
112         "type": "returnFailure",\r
113         "name": "return failure",\r
114         "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC Evacuate not found' />",\r
115         "comments": "",\r
116         "x": 1254.88330078125,\r
117         "y": 213.88330078125,\r
118         "z": "96b506dc.10c5e8",\r
119         "wires": []\r
120     },\r
121     {\r
122         "id": "4a9ae26e.e2a654",\r
123         "type": "switchNode",\r
124         "name": "switch",\r
125         "xml": "<switch test='`$EVACUATE_STATUS`'>\n",\r
126         "comments": "",\r
127         "outputs": 1,\r
128         "x": 1066.88330078125,\r
129         "y": 316.88330078125,\r
130         "z": "96b506dc.10c5e8",\r
131         "wires": [\r
132             [\r
133                 "a71868a3.d0fc38",\r
134                 "a3d63b8d.7bb02"\r
135             ]\r
136         ]\r
137     },\r
138     {\r
139         "id": "a71868a3.d0fc38",\r
140         "type": "success",\r
141         "name": "SUCCESS",\r
142         "xml": "<outcome value='SUCCESS'>\n",\r
143         "comments": "",\r
144         "outputs": 1,\r
145         "x": 1197.88330078125,\r
146         "y": 290.88330078125,\r
147         "z": "96b506dc.10c5e8",\r
148         "wires": [\r
149             [\r
150                 "3d2c4844.2e8078"\r
151             ]\r
152         ]\r
153     },\r
154     {\r
155         "id": "a3d63b8d.7bb02",\r
156         "type": "outcome",\r
157         "name": "ERROR",\r
158         "xml": "<outcome value='ERROR'>\n",\r
159         "comments": "",\r
160         "outputs": 1,\r
161         "x": 1191.88330078125,\r
162         "y": 373.88330078125,\r
163         "z": "96b506dc.10c5e8",\r
164         "wires": [\r
165             [\r
166                 "a85ae409.b4541"\r
167             ]\r
168         ]\r
169     },\r
170     {\r
171         "id": "a85ae409.b4541",\r
172         "type": "block",\r
173         "name": "block",\r
174         "xml": "<block>\n",\r
175         "atomic": "false",\r
176         "comments": "",\r
177         "outputs": 1,\r
178         "x": 1332.88330078125,\r
179         "y": 374.88330078125,\r
180         "z": "96b506dc.10c5e8",\r
181         "wires": [\r
182             [\r
183                 "d00419cf.1b199",\r
184                 "411472cf.0aaea4"\r
185             ]\r
186         ]\r
187     },\r
188     {\r
189         "id": "d00419cf.1b199",\r
190         "type": "returnFailure",\r
191         "name": "return failure",\r
192         "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",\r
193         "comments": "",\r
194         "x": 1508.8832397460938,\r
195         "y": 423.8833312988281,\r
196         "z": "96b506dc.10c5e8",\r
197         "wires": []\r
198     },\r
199     {\r
200         "id": "5eba654f.8cceec",\r
201         "type": "block",\r
202         "name": "block",\r
203         "xml": "<block>\n",\r
204         "atomic": "false",\r
205         "comments": "",\r
206         "outputs": 1,\r
207         "x": 1069.88330078125,\r
208         "y": 194.88330078125,\r
209         "z": "96b506dc.10c5e8",\r
210         "wires": [\r
211             [\r
212                 "5572aa21.a402dc"\r
213             ]\r
214         ]\r
215     },\r
216     {\r
217         "id": "8851723f.af52a",\r
218         "type": "record",\r
219         "name": "record",\r
220         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />",\r
221         "comments": "",\r
222         "outputs": 1,\r
223         "x": 851,\r
224         "y": 93.88333129882812,\r
225         "z": "96b506dc.10c5e8",\r
226         "wires": [\r
227             []\r
228         ]\r
229     },\r
230     {\r
231         "id": "213ddb60.68307c",\r
232         "type": "block",\r
233         "name": "block",\r
234         "xml": "<block>\n",\r
235         "atomic": "false",\r
236         "comments": "",\r
237         "outputs": 1,\r
238         "x": 725.75,\r
239         "y": 164.75,\r
240         "z": "96b506dc.10c5e8",\r
241         "wires": [\r
242             [\r
243                 "8851723f.af52a",\r
244                 "d8525233.851af8"\r
245             ]\r
246         ]\r
247     },\r
248     {\r
249         "id": "411472cf.0aaea4",\r
250         "type": "record",\r
251         "name": "record",\r
252         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />",\r
253         "comments": "",\r
254         "outputs": 1,\r
255         "x": 1495.7499389648438,\r
256         "y": 375.75,\r
257         "z": "96b506dc.10c5e8",\r
258         "wires": [\r
259             []\r
260         ]\r
261     }\r
262 ]\r