Platform Hardening for DG Json files - Part 7
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_CreateSnapShotVM.json
index ae43937..35b58f4 100644 (file)
@@ -1 +1,262 @@
-[{"id":"d52c65e5.f5198","type":"dgstart","name":"DGSTART","outputs":1,"x":176.75,"y":107.75,"z":"30478bde.f2abc4","wires":[["ddb3e53d.f4b2f"]]},{"id":"ddb3e53d.f4b2f","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","comments":"","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'>","outputs":1,"x":364.75,"y":108.75,"z":"30478bde.f2abc4","wires":[["d8340025.194a6"]]},{"id":"d8340025.194a6","type":"method","name":"CreateSnapshotVM","xml":"<method rpc='CreateSnapShotVM' mode='sync'>\n","comments":"","outputs":1,"x":593.7499694824219,"y":109.75,"z":"30478bde.f2abc4","wires":[["d54c9ea.28358e"]]},{"id":"6b99250e.35643c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":930.7499694824219,"y":320.7499694824219,"z":"30478bde.f2abc4","wires":[["397ee930.1e2b1e"]]},{"id":"a43afbad.7e76b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":939.7499694824219,"y":199.74996948242188,"z":"30478bde.f2abc4","wires":[["7859efa9.a0ac4"]]},{"id":"9f18808f.a11f7","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1486.7499694824219,"y":292.7499694824219,"z":"30478bde.f2abc4","wires":[]},{"id":"5dad8781.d7ba1","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC CreateSnapShot not found' />","comments":"","x":1247.7499694824219,"y":199.74996948242188,"z":"30478bde.f2abc4","wires":[]},{"id":"397ee930.1e2b1e","type":"switchNode","name":"switch error-code","xml":"<switch test='`$error_code`'>\n","comments":"","outputs":1,"x":1123.7499694824219,"y":321.7499694824219,"z":"30478bde.f2abc4","wires":[["1ed28160.fcd10f","7b2975af.e9ca64"]]},{"id":"1ed28160.fcd10f","type":"success","name":"SUCCESS 200","xml":"<outcome value='200'>\n","comments":"","outputs":1,"x":1305.7499694824219,"y":291.7499694824219,"z":"30478bde.f2abc4","wires":[["9f18808f.a11f7"]]},{"id":"7b2975af.e9ca64","type":"outcome","name":"ERROR","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1297.7499694824219,"y":450.7499694824219,"z":"30478bde.f2abc4","wires":[["da50f76.9fc8c08"]]},{"id":"da50f76.9fc8c08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1430.7499694824219,"y":451.7499694824219,"z":"30478bde.f2abc4","wires":[["bc220e8d.e4e278","191f3219.fef8f6"]]},{"id":"bc220e8d.e4e278","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":1565.7499694824219,"y":492.75,"z":"30478bde.f2abc4","wires":[]},{"id":"7859efa9.a0ac4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1095.7499694824219,"y":199.74996948242188,"z":"30478bde.f2abc4","wires":[["5dad8781.d7ba1"]]},{"id":"77e88d06.223f64","type":"record","name":"record","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`\" />","comments":"","outputs":1,"x":876.8666687011719,"y":98.75,"z":"30478bde.f2abc4","wires":[[]]},{"id":"d54c9ea.28358e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":751.6166687011719,"y":169.61666870117188,"z":"30478bde.f2abc4","wires":[["77e88d06.223f64","d8474535.89d048"]]},{"id":"191f3219.fef8f6","type":"record","name":"record","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`\" />\n<parameter name=\"field4\" value=\"`'error-code = ' + $error_code`\" />","comments":"","outputs":1,"x":1555.6166687011719,"y":423.6166687011719,"z":"30478bde.f2abc4","wires":[[]]},{"id":"d8474535.89d048","type":"execute","name":"createSnapshot()","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=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />","comments":"","outputs":1,"x":767.7499694824219,"y":265.75,"z":"30478bde.f2abc4","wires":[["a43afbad.7e76b","6b99250e.35643c"]]}]
+[\r
+    {\r
+        "id": "d52c65e5.f5198",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 176.75,\r
+        "y": 107.75,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "ddb3e53d.f4b2f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddb3e53d.f4b2f",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.0.0",\r
+        "comments": "",\r
+        "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
+        "outputs": 1,\r
+        "x": 364.75,\r
+        "y": 108.75,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "d8340025.194a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8340025.194a6",\r
+        "type": "method",\r
+        "name": "CreateSnapshotVM",\r
+        "xml": "<method rpc='CreateSnapShotVM' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.7499694824219,\r
+        "y": 109.75,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "d54c9ea.28358e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b99250e.35643c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 930.7499694824219,\r
+        "y": 320.7499694824219,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "397ee930.1e2b1e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a43afbad.7e76b",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.7499694824219,\r
+        "y": 199.74996948242188,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "7859efa9.a0ac4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9f18808f.a11f7",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>",\r
+        "comments": "",\r
+        "x": 1486.7499694824219,\r
+        "y": 292.7499694824219,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5dad8781.d7ba1",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC CreateSnapShot not found' />",\r
+        "comments": "",\r
+        "x": 1247.7499694824219,\r
+        "y": 199.74996948242188,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "397ee930.1e2b1e",\r
+        "type": "switchNode",\r
+        "name": "switch error-code",\r
+        "xml": "<switch test='`$error_code`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1123.7499694824219,\r
+        "y": 321.7499694824219,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "1ed28160.fcd10f",\r
+                "7b2975af.e9ca64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ed28160.fcd10f",\r
+        "type": "success",\r
+        "name": "SUCCESS 200",\r
+        "xml": "<outcome value='200'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1305.7499694824219,\r
+        "y": 291.7499694824219,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "9f18808f.a11f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b2975af.e9ca64",\r
+        "type": "outcome",\r
+        "name": "ERROR",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1297.7499694824219,\r
+        "y": 450.7499694824219,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "da50f76.9fc8c08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da50f76.9fc8c08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1430.7499694824219,\r
+        "y": 451.7499694824219,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "bc220e8d.e4e278",\r
+                "191f3219.fef8f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bc220e8d.e4e278",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",\r
+        "comments": "",\r
+        "x": 1565.7499694824219,\r
+        "y": 492.75,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7859efa9.a0ac4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1095.7499694824219,\r
+        "y": 199.74996948242188,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "5dad8781.d7ba1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77e88d06.223f64",\r
+        "type": "record",\r
+        "name": "record",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 876.8666687011719,\r
+        "y": 98.75,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d54c9ea.28358e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 751.6166687011719,\r
+        "y": 169.61666870117188,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "77e88d06.223f64",\r
+                "d8474535.89d048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "191f3219.fef8f6",\r
+        "type": "record",\r
+        "name": "record",\r
+        "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`\" />\n<parameter name=\"field4\" value=\"`'error-code = ' + $error_code`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1555.6166687011719,\r
+        "y": 423.6166687011719,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8474535.89d048",\r
+        "type": "execute",\r
+        "name": "createSnapshot()",\r
+        "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=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 767.7499694824219,\r
+        "y": 265.75,\r
+        "z": "30478bde.f2abc4",\r
+        "wires": [\r
+            [\r
+                "a43afbad.7e76b",\r
+                "6b99250e.35643c"\r
+            ]\r
+        ]\r
+    }\r
+]\r