Resolution processors tests and extendability
[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   "aai-get-resource": {
104     "tags": "aai-get",
105     "name": "aai-get-resource",
106     "property": {
107       "description": "primary aai data to get resource",
108       "type": "string"
109     },
110     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
111     "sources": {
112       "aai-data": {
113         "type": "source-rest",
114         "properties": {
115           "type": "JSON",
116           "verb": "GET",
117           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
118           "path": "",
119           "input-key-mapping": {
120             "vnf-id": "vnf-id"
121           },
122           "output-key-mapping": {
123             "aai-get-resource": "vnf-id"
124           },
125           "key-dependencies": [
126             "vnf-id"
127           ]
128         }
129       }
130     }
131   },
132   "aai-get-resource-null": {
133     "tags": "aai-get",
134     "name": "aai-get-resource-null",
135     "property": {
136       "description": "primary aai data to get resource with empty content",
137       "type": "string"
138     },
139     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
140     "sources": {
141       "aai-data": {
142         "type": "source-rest",
143         "properties": {
144           "type": "JSON",
145           "verb": "GET",
146           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
147           "path": "",
148           "input-key-mapping": {
149             "vnf-id": "vnf-id"
150           },
151           "key-dependencies": [
152             "vnf-id"
153           ]
154         }
155       }
156     }
157   },
158   "aai-get-resource-wrong-mapping": {
159     "tags": "aai-get",
160     "name": "aai-get-resource-wrong-mapping",
161     "property": {
162       "description": "primary aai data to get resource with wrong mapping",
163       "type": "string"
164     },
165     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
166     "sources": {
167       "aai-data": {
168         "type": "source-rest",
169         "properties": {
170           "type": "JSON",
171           "verb": "GET",
172           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
173           "path": "",
174           "input-key-mapping": {
175             "vnf-id": "vnf-id"
176           },
177           "output-key-mapping": {
178             "aai-get-resource-wrong-mapping": "wrong"
179           },
180           "key-dependencies": [
181             "vnf-id"
182           ]
183         }
184       }
185     }
186   },
187   "aai-get-json-resource": {
188     "tags": "aai-get-json",
189     "name": "aai-get-json-resource",
190     "property": {
191       "description": "primary aai data to get resource",
192       "type": "json"
193     },
194     "updated-by": "Rajewski, Lukasz <lukasz.rajewski@t-mobile.pl>",
195     "sources": {
196       "aai-data": {
197         "type": "source-rest",
198         "properties": {
199           "type": "JSON",
200           "verb": "GET",
201           "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
202           "path": "",
203           "input-key-mapping": {
204             "vnf-id": "vnf-id"
205           },
206           "output-key-mapping": {
207           },
208           "key-dependencies": [
209             "vnf-id"
210           ]
211         }
212       }
213     }
214   },
215   "aai-put-resource": {
216     "tags": "aai-put",
217     "name": "aai-put-resource",
218     "property": {
219       "description": "primary aai data to update resource",
220       "type": "string"
221     },
222     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
223     "sources": {
224       "aai-data": {
225         "type": "source-rest",
226         "properties": {
227           "type": "JSON",
228           "verb": "PUT",
229           "url-path": "/query?format=resource",
230           "path": "",
231           "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}",
232
233           "input-key-mapping": {
234             "vnf-id": "vnf-id"
235           },
236           "output-key-mapping": {
237           },
238           "key-dependencies": [
239             "vnf-id"
240           ]
241         }
242       }
243     }
244   },
245   "aai-post-resource": {
246     "tags": "aai-port",
247     "name": "aai-port-resource",
248     "property": {
249       "description": "primary aai data to create new resource",
250       "type": "string"
251     },
252     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
253     "sources": {
254       "aai-data": {
255         "type": "source-rest",
256         "properties": {
257           "type": "JSON",
258           "verb": "POST",
259           "url-path": "/aai/add/uri/here",
260           "path": "",
261           "payload": "",
262           "input-key-mapping": {
263             "vnf-id": "vnf-id"
264           },
265           "output-key-mapping": {
266           },
267           "key-dependencies": [
268             "vnf-id"
269           ]
270         }
271       }
272     }
273   }
274 }