Add component function scripting service
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / mdsal-source.json
1 {
2   "tags": "oam-local-ipv4-address",
3   "name": "mdsal-source",
4   "property" :{
5     "description": "based on service-instance-id,network-role,v4-ip-type and vm-type get the ipv4-gateway-prefix from the SDN-GC mdsal",
6     "type": "string"
7   },
8   "updated-by": "brindasanth@onap.com",
9   "sources": {
10     "primary-config-data": {
11       "type": "source-rest",
12       "properties": {
13         "type": "JSON",
14         "endpoint-selector" : "",
15         "url-path": "config/L3VNF-API:services/service-list/$service-instance-id/service-data/vnf-topology-information/vnf-assignments/vnf-vms/$vm-type/vm-networks/$network-role/v4-assigned-ip-list/$v4-ip-type",
16         "path": "/v4-assigned-ip-list/0/v4-ip-prefix",
17         "input-key-mapping": {
18           "service-instance-id": "service-instance-id",
19           "network-role": "network-role",
20           "v4-ip-type": "v4-ip-type",
21           "vm-type": "vm-type"
22         },
23         "output-key-mapping": {
24           "oam-local-ipv4-address": "v4-ip-prefix"
25         },
26         "key-dependencies": [
27           "service-instance-id",
28           "network-role",
29           "v4-ip-type",
30           "vm-type"
31         ]
32       }
33     }
34   }
35 }