Templating constants added to ResourceAssignment
[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       "any-db": {
43         "type": "source-db",
44         "properties": {
45           "endpoint-selector": "dynamic-db-source",
46           "query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_MODEL where artifact_version=\"1.0.0\"",
47           "input-key-mapping": {
48           },
49           "output-key-mapping": {
50             "service-instance-id": "artifact_name"
51           },
52           "key-dependencies" : []
53         }
54       }
55     }
56   },
57   "vnf-id": {
58     "tags": "vnf-id",
59     "name": "vnf-id",
60     "property": {
61       "description": "vnf-id",
62       "type": "string"
63     },
64     "updated-by": "Singal, Kapil <ks220y@att.com>",
65     "sources": {
66       "input": {
67         "type": "source-input",
68         "properties": {}
69       }
70     }
71   },
72   "vnf_name": {
73     "tags": "vnf_name",
74     "name": "vnf_name",
75     "property": {
76       "description": "vnf_name",
77       "type": "string"
78     },
79     "updated-by": "Singal, Kapil <ks220y@att.com>",
80     "sources": {
81       "sdnc": {
82         "type": "source-rest",
83         "properties": {
84           "verb": "GET",
85           "type": "JSON",
86           "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",
87           "path": "/param/0/value",
88           "input-key-mapping": {
89             "service-instance-id": "service-instance-id",
90             "vnf-id": "vnf-id"
91           },
92           "output-key-mapping": {
93             "vnf_name": "value"
94           },
95           "key-dependencies": [
96             "service-instance-id",
97             "vnf-id"
98           ]
99         }
100       }
101     }
102   },
103   "vnf_parameter": {
104     "tags": "vnf_parameter",
105     "name": "vnf_parameter",
106     "property": {
107       "description": "vnf_parameter",
108       "type": "string"
109     },
110     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
111     "sources": {
112       "sdnc": {
113         "type": "source-rest",
114         "properties": {
115           "verb": "GET",
116           "type": "JSON",
117           "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/$parameter-name",
118           "path": "/param/0/value",
119           "input-key-mapping": {
120             "service-instance-id": "service-instance-id",
121             "vnf-id": "vnf-id",
122             "parameter-name": "parameter-name"
123           },
124           "output-key-mapping": {
125             "vnf_name": "value"
126           },
127           "key-dependencies": [
128             "service-instance-id",
129             "vnf-id"
130           ]
131         }
132       }
133     }
134   },
135   "aai-get-resource": {
136     "tags": "aai-get",
137     "name": "aai-get-resource",
138     "property": {
139       "description": "primary aai data to get resource",
140       "type": "string"
141     },
142     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
143     "sources": {
144       "aai-data": {
145         "type": "source-rest",
146         "properties": {
147           "type": "JSON",
148           "verb": "GET",
149           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
150           "path": "",
151           "input-key-mapping": {
152             "vnf-id": "vnf-id"
153           },
154           "output-key-mapping": {
155             "aai-get-resource": "vnf-id"
156           },
157           "key-dependencies": [
158             "vnf-id"
159           ]
160         }
161       }
162     }
163   },
164   "aai-get-resource-null": {
165     "tags": "aai-get",
166     "name": "aai-get-resource-null",
167     "property": {
168       "description": "primary aai data to get resource with empty content",
169       "type": "string"
170     },
171     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
172     "sources": {
173       "aai-data": {
174         "type": "source-rest",
175         "properties": {
176           "type": "JSON",
177           "verb": "GET",
178           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
179           "path": "",
180           "input-key-mapping": {
181             "vnf-id": "vnf-id"
182           },
183           "key-dependencies": [
184             "vnf-id"
185           ]
186         }
187       }
188     }
189   },
190   "aai-get-resource-wrong-mapping": {
191     "tags": "aai-get",
192     "name": "aai-get-resource-wrong-mapping",
193     "property": {
194       "description": "primary aai data to get resource with wrong mapping",
195       "type": "string"
196     },
197     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
198     "sources": {
199       "aai-data": {
200         "type": "source-rest",
201         "properties": {
202           "type": "JSON",
203           "verb": "GET",
204           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
205           "path": "",
206           "input-key-mapping": {
207             "vnf-id": "vnf-id"
208           },
209           "output-key-mapping": {
210             "aai-get-resource-wrong-mapping": "wrong"
211           },
212           "key-dependencies": [
213             "vnf-id"
214           ]
215         }
216       }
217     }
218   },
219   "aai-get-json-resource": {
220     "tags": "aai-get-json",
221     "name": "aai-get-json-resource",
222     "property": {
223       "description": "primary aai data to get resource",
224       "type": "json"
225     },
226     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
227     "sources": {
228       "aai-data": {
229         "type": "source-rest",
230         "properties": {
231           "type": "JSON",
232           "verb": "GET",
233           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
234           "path": "",
235           "input-key-mapping": {
236             "vnf-id": "vnf-id"
237           },
238           "output-key-mapping": {
239           },
240           "key-dependencies": [
241             "vnf-id"
242           ]
243         }
244       }
245     }
246   },
247   "aai-put-resource": {
248     "tags": "aai-put",
249     "name": "aai-put-resource",
250     "property": {
251       "description": "primary aai data to update resource",
252       "type": "string"
253     },
254     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
255     "sources": {
256       "aai-data": {
257         "type": "source-rest",
258         "properties": {
259           "type": "JSON",
260           "verb": "PUT",
261           "url-path": "/query?format=resource",
262           "path": "",
263           "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}",
264
265           "input-key-mapping": {
266             "vnf-id": "vnf-id"
267           },
268           "output-key-mapping": {
269           },
270           "key-dependencies": [
271             "vnf-id"
272           ]
273         }
274       }
275     }
276   },
277   "aai-post-resource": {
278     "tags": "aai-port",
279     "name": "aai-port-resource",
280     "property": {
281       "description": "primary aai data to create new resource",
282       "type": "string"
283     },
284     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
285     "sources": {
286       "aai-data": {
287         "type": "source-rest",
288         "properties": {
289           "type": "JSON",
290           "verb": "POST",
291           "url-path": "/aai/add/uri/here",
292           "path": "",
293           "payload": "",
294           "input-key-mapping": {
295             "vnf-id": "vnf-id"
296           },
297           "output-key-mapping": {
298           },
299           "key-dependencies": [
300             "vnf-id"
301           ]
302         }
303       }
304     }
305   }
306 }