Update Data Definitions
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / vdns_name_0.json
old mode 100755 (executable)
new mode 100644 (file)
index 709eb2a..c826b6f
@@ -1,39 +1,69 @@
 {
-       "tags": "vdns_name_0",
-       "name": "vdns_name_0",
-       "group":"default",
-       "property": {
-               "description": "vdns_name_0",
-               "type": "string"
-       },
-       "updated-by": "Singal, Kapil <ks220y@att.com>",
-       "sources": {
-               "input": {
-                       "type": "source-input"
-               },
-               "default": {
-                       "type": "source-default",
-                       "properties": {}
-               },
-               "sdnc": {
-                       "type": "source-rest",
-                       "properties": {
-                               "verb": "GET",
-                               "type": "JSON",
-                               "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vdns_name_0",
-                               "path": "/param/0/value",
-                               "input-key-mapping": {
-                                       "service-instance-id": "service-instance-id",
-                                       "vnf-id": "vnf-id"
-                               },
-                               "output-key-mapping": {
-                                       "vdns_name_0": "value"
-                               },
-                               "key-dependencies": [
-                                       "service-instance-id",
-                                       "vnf-id"
-                               ]
-                       }
-               }
-       }
-}
+    "tags": "vdns_name_0",
+    "name": "vdns_name_0",
+    "group":"default",
+    "property": {
+        "description": "vdns_name_0",
+        "type": "string"
+    },
+    "updated-by": "Singal, Kapil <ks220y@att.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        },
+        "sdnc": {
+            "type": "source-rest",
+            "properties": {
+                "verb": "GET",
+                "type": "JSON",
+                "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vdns_name_0",
+                "path": "/param/0/value",
+                "input-key-mapping": {
+                    "service-instance-id": "service-instance-id",
+                    "vnf-id": "vnf-id"
+                },
+                "output-key-mapping": {
+                    "vdns_name_0": "value"
+                },
+                "key-dependencies": [
+                    "service-instance-id",
+                    "vnf-id"
+                ]
+            }
+        },
+        "rest": {
+            "type": "source-rest",
+            "properties": {
+                "endpoint-selector": "naming-resolution",
+                "verb": "POST",
+                "type": "JSON",
+                "headers": {
+                    "Accept": "application/json",
+                    "Content-Type": "application/json"
+                },
+                "url-path": "/v1/genNetworkElementName",
+                "payload": "{\r\n\t\"elements\": [{\r\n\t\t\"resource-name\": \"vdns_name_0\",\r\n\t\t\"resource-value\": \"${vdns_name_0}\",\r\n\t\t\"external-key\": \"${vf-module-id}_vdns_name_0\",\r\n\t\t\"policy-instance-name\": \"${vf-naming-policy}\",\r\n\t\t\"naming-type\": \"VNFC\",\r\n\t\t\"VNF_NAME\": \"${vnf_name}\",\r\n\t\t\"NFC_NAMING_CODE\": \"${nfc-naming-code}\"\r\n\t}]\r\n}",
+                "path": "/elements/0/resource-value",
+                "input-key-mapping": {
+                    "vf-naming-policy": "vf-naming-policy",
+                    "nfc-naming-code": "nfc-naming-code",
+                    "vnf_name": "vnf_name",
+                    "vf-module-id": "vf-module-id"
+                },
+                "output-key-mapping": {
+                    "vdns_name_0": "resource-value"
+                },
+                "key-dependencies": [
+                    "vf-naming-policy",
+                    "nfc-naming-code",
+                    "vnf_name",
+                    "vf-module-id"
+                ]
+            }
+        }
+    }
+}
\ No newline at end of file