Create restconf component function module
authorMuthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
Tue, 12 Feb 2019 20:53:39 +0000 (15:53 -0500)
committerMuthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
Wed, 13 Feb 2019 01:18:09 +0000 (20:18 -0500)
Change-Id: I04c29bfc981b677d81da73441228215ce4868833
Issue-ID: CCSDK-1060
Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
components/model-catalog/definition-type/starter-type/node_type/component-restconf-executor.json [new file with mode: 0644]

diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-restconf-executor.json b/components/model-catalog/definition-type/starter-type/node_type/component-restconf-executor.json
new file mode 100644 (file)
index 0000000..884be5d
--- /dev/null
@@ -0,0 +1,40 @@
+{
+  "description": "This is Netconf Transaction Configuration Component API",
+  "version": "1.0.0",
+  "capabilities": {
+    "component-node": {
+      "type": "tosca.capabilities.Node"
+    }
+  },
+  "interfaces": {
+    "ComponentRestconfExecutor": {
+      "operations": {
+        "process": {
+          "inputs": {
+            "instance-dependencies": {
+              "required": true,
+              "description": "Instance Names to Inject to Jython Script.",
+              "type": "list",
+              "entry_schema": {
+                "type": "string"
+              }
+            }
+          },
+          "outputs": {
+            "response-data": {
+              "description": "Execution Response Data in JSON format.",
+              "required": false,
+              "type": "string"
+            },
+            "status": {
+              "description": "Status of the Component Execution ( success or failure )",
+              "required": true,
+              "type": "string"
+            }
+          }
+        }
+      }
+    }
+  },
+  "derived_from": "tosca.nodes.Component"
+}
\ No newline at end of file