Data dictionary fixes and improvements from vFW CNF demo
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / vf-module-name.json
1 {
2     "tags": "vf-module-name",
3     "name": "vf-module-name",
4     "group":"default",
5     "property": {
6         "description": "vf-module-name",
7         "type": "string"
8     },
9     "updated-by": "Singal, Kapil <ks220y@att.com>",
10     "sources": {
11         "input": {
12             "type": "source-input"
13         },
14         "default": {
15             "type": "source-default",
16             "properties": {}
17         },
18         "sdnc": {
19             "type": "source-rest",
20             "properties": {
21                 "verb": "GET",
22                 "type": "JSON",
23                 "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vf-modules/vf-module/$vf_module_id/vf-module-data/vf-module-topology/vf-module-parameters/param/vf-module-name",
24                 "path": "/param/0/value",
25                 "input-key-mapping": {
26                     "service-instance-id": "service-instance-id",
27                     "vnf-id": "vnf-id"
28                 },
29                 "output-key-mapping": {
30                     "vf-module-name": "value"
31                 },
32                 "key-dependencies": [
33                     "service-instance-id",
34                     "vnf-id",
35                     "vf_module_id"
36                 ]
37             }
38         },
39         "rest": {
40             "type": "source-rest",
41             "properties": {
42                 "endpoint-selector": "naming-resolution",
43                 "verb": "POST",
44                 "type": "JSON",
45                 "headers": {
46                     "Accept": "application/json",
47                     "Content-Type": "application/json"
48                 },
49                 "url-path": "/v1/genNetworkElementName",
50                 "payload": "{\r\n  \"elements\": [\r\n    {\r\n      \"resource-name\": \"vf-module-name\",\r\n      \"resource-value\": \"${vf-module-name}\",\r\n      \"external-key\": \"${vf-module-id}\",\r\n      \"policy-instance-name\": \"${vf-naming-policy}\",\r\n      \"naming-type\": \"VF-MODULE\",\r\n      \"VNF_NAME\": \"${vnf_name}\",\r\n      \"VF_MODULE_LABEL\":\"${vf-module-label}\",\r\n      \"VF_MODULE_TYPE\":\"${vf-module-type}\"\r\n    }\r\n  ]\r\n}",
51                 "path": "/elements/0/resource-value",
52                 "input-key-mapping": {
53                     "vf-naming-policy": "vf-naming-policy",
54                     "vnf_name": "vnf_name",
55                     "vf-module-label": "vf-module-label",
56                     "vf-module-type": "vf-module-type",
57                     "vf-module-id": "vf-module-id"
58                 },
59                 "output-key-mapping": {
60                     "vf-module-name": "resource-value"
61                 },
62                 "key-dependencies": [
63                     "vf-naming-policy",
64                     "vnf_name",
65                     "vf-module-label",
66                     "vf-module-type",
67                     "vf-module-id"
68                 ]
69             }
70         }
71     }
72 }