5f50eaa51d0ba6355bc68fdee058e0579844e45b
[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       "processor-db": {
30         "type": "source-db",
31         "properties": {
32           "endpoint-selector": "dynamic-db-source",
33           "query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_MODEL 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       "sdnc": {
69         "type": "source-rest",
70         "properties": {
71           "verb": "GET",
72           "type": "JSON",
73           "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",
74           "path": "/param/0/value",
75           "input-key-mapping": {
76             "service-instance-id": "service-instance-id",
77             "vnf-id": "vnf-id"
78           },
79           "output-key-mapping": {
80             "vnf_name": "value"
81           },
82           "key-dependencies": [
83             "service-instance-id",
84             "vnf-id"
85           ]
86         }
87       }
88     }
89   },
90   "aai-get-resource": {
91     "tags": "aai-get",
92     "name": "aai-get-resource",
93     "property": {
94       "description": "primary aai data to get resource",
95       "type": "string"
96     },
97     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
98     "sources": {
99       "aai-data": {
100         "type": "source-rest",
101         "properties": {
102           "type": "JSON",
103           "verb": "GET",
104           "url-path": "/aai/v14/network/generic-vnfs/generic-vnf/$vnf-id",
105           "path": "",
106           "input-key-mapping": {
107             "vnf-id": "vnf-id"
108           },
109           "output-key-mapping": {
110           },
111           "key-dependencies": [
112             "vnf-id"
113           ]
114         }
115       }
116     }
117   },
118   "aai-put-resource": {
119     "tags": "aai-put",
120     "name": "aai-put-resource",
121     "property": {
122       "description": "primary aai data to update resource",
123       "type": "string"
124     },
125     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
126     "sources": {
127       "aai-data": {
128         "type": "source-rest",
129         "properties": {
130           "type": "JSON",
131           "verb": "PUT",
132           "url-path": "/query?format=resource",
133           "path": "",
134           "payload": "{\r\n\"start\": \"\\/nodes\\/vf-modules?vf-module-name=vf-module-name\",\r\n\"query\": \"\\/query\\/related-to?startingNodeType=vf-module&relatedToNodeType=generic-vnf\"\r\n}",
135
136           "input-key-mapping": {
137             "vnf-id": "vnf-id"
138           },
139           "output-key-mapping": {
140           },
141           "key-dependencies": [
142             "vnf-id"
143           ]
144         }
145       }
146     }
147   },
148   "aai-post-resource": {
149     "tags": "aai-port",
150     "name": "aai-port-resource",
151     "property": {
152       "description": "primary aai data to create new resource",
153       "type": "string"
154     },
155     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
156     "sources": {
157       "aai-data": {
158         "type": "source-rest",
159         "properties": {
160           "type": "JSON",
161           "verb": "POST",
162           "url-path": "/aai/add/uri/here",
163           "path": "",
164           "payload": "",
165           "input-key-mapping": {
166             "vnf-id": "vnf-id"
167           },
168           "output-key-mapping": {
169           },
170           "key-dependencies": [
171             "vnf-id"
172           ]
173         }
174       }
175     }
176   }
177 }