[Blueprintsprocessor] Use all source-db resources instead of only processor-db
[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           },
124           "key-dependencies": [
125             "vnf-id"
126           ]
127         }
128       }
129     }
130   },
131   "aai-put-resource": {
132     "tags": "aai-put",
133     "name": "aai-put-resource",
134     "property": {
135       "description": "primary aai data to update resource",
136       "type": "string"
137     },
138     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
139     "sources": {
140       "aai-data": {
141         "type": "source-rest",
142         "properties": {
143           "type": "JSON",
144           "verb": "PUT",
145           "url-path": "/query?format=resource",
146           "path": "",
147           "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}",
148
149           "input-key-mapping": {
150             "vnf-id": "vnf-id"
151           },
152           "output-key-mapping": {
153           },
154           "key-dependencies": [
155             "vnf-id"
156           ]
157         }
158       }
159     }
160   },
161   "aai-post-resource": {
162     "tags": "aai-port",
163     "name": "aai-port-resource",
164     "property": {
165       "description": "primary aai data to create new resource",
166       "type": "string"
167     },
168     "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
169     "sources": {
170       "aai-data": {
171         "type": "source-rest",
172         "properties": {
173           "type": "JSON",
174           "verb": "POST",
175           "url-path": "/aai/add/uri/here",
176           "path": "",
177           "payload": "",
178           "input-key-mapping": {
179             "vnf-id": "vnf-id"
180           },
181           "output-key-mapping": {
182           },
183           "key-dependencies": [
184             "vnf-id"
185           ]
186         }
187       }
188     }
189   }
190 }