Merge "Blueprint for configuring a PNF"
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / baseconfiguration / Definitions / resources_definition_types.json
1 {
2   "hostname": {
3     "tags": "hostname",
4     "name": "hostname",
5     "property": {
6       "description": "hostname",
7       "type": "string"
8     },
9     "updated-by": "Singal, Kapil <ks220y@att.com>",
10     "sources": {
11       "input": {
12         "type": "source-input"
13       }
14     }
15   },
16   "service-instance-id": {
17     "tags": "service-instance-id, tosca.datatypes.Root, data_type",
18     "name": "service-instance-id",
19     "property": {
20       "description": "To be provided",
21       "type": "string"
22     },
23     "updated-by": "Singal, Kapil <ks220y@att.com>",
24     "sources": {
25       "input": {
26         "type": "source-input",
27         "properties": {}
28       },
29       "primary-db": {
30         "type": "source-primary-db",
31         "properties": {
32           "endpoint-selector": "dynamic-db-source",
33           "query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
34           "input-key-mapping": {
35           },
36           "output-key-mapping": {
37             "service-instance-id": "artifact_name"
38           },
39           "key-dependencies" : []
40         }
41       }
42     }
43   },
44   "vnf-id": {
45     "tags": "vnf-id",
46     "name": "vnf-id",
47     "property": {
48       "description": "vnf-id",
49       "type": "string"
50     },
51     "updated-by": "Singal, Kapil <ks220y@att.com>",
52     "sources": {
53       "input": {
54         "type": "source-input",
55         "properties": {}
56       }
57     }
58   },
59   "vnf_name": {
60     "tags": "vnf_name",
61     "name": "vnf_name",
62     "property": {
63       "description": "vnf_name",
64       "type": "string"
65     },
66     "updated-by": "Singal, Kapil <ks220y@att.com>",
67     "sources": {
68       "primary-config-data": {
69         "type": "source-rest",
70         "properties": {
71           "type": "JSON",
72           "url-path": "config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name",
73           "path": "/param/0/value",
74           "input-key-mapping": {
75             "service-instance-id": "service-instance-id",
76             "vnf-id": "vnf-id"
77           },
78           "output-key-mapping": {
79             "vnf_name": "value"
80           },
81           "key-dependencies": [
82             "service-instance-id",
83             "vnf-id"
84           ]
85         }
86       }
87     }
88   }
89 }