0f1810fca9da57f95191b11979c9405b24b58d6b
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / service-instance-id.json
1 {
2         "tags": "service-instance-id, tosca.datatypes.Root, data_type",
3         "name": "service-instance-id",
4         "group":"default",
5         "property": {
6                 "description": "To be provided",
7                 "type": "string"
8         },
9         "updated-by": "Singal, Kapil <ks220y@att.com>",
10         "sources": {
11                 "input": {
12                         "type": "source-input",
13                         "properties": {}
14                 },
15                 "any-db": {
16                         "type": "source-db",
17                         "properties": {
18                                 "query": "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
19                                 "input-key-mapping": {},
20                                 "output-key-mapping": {
21                                         "service-instance-id": "artifact_name"
22                                 }
23                         }
24                 },
25                 "processor-db": {
26                         "type": "source-db",
27                         "properties": {
28                                 "query": "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
29                                 "input-key-mapping": {},
30                                 "output-key-mapping": {
31                                         "service-instance-id": "artifact_name"
32                                 }
33                         }
34                 },
35                 "capability": {
36                         "type": "source-capability",
37                         "properties": {
38                                 "script-type": "jython",
39                                 "script-class-reference": "SampleRAProcessor",
40                                 "instance-dependencies": []
41                         }
42                 },
43                 "sdnc": {
44                         "type": "source-rest",
45                         "properties": {
46                                 "verb": "GET",
47                                 "type": "JSON",
48                                 "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id",
49                                 "path": "/service/0/service-instance-id",
50                                 "input-key-mapping": {
51                                         "service-instance-id": "service-instance.service-instance-id"
52                                 },
53                                 "output-key-mapping": {
54                                         "service-instance-id": "service-instance-id"
55                                 },
56                                 "key-dependencies": ["service-instance.service-instance-id"]
57                         }
58                 }
59         }
60 }