summaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json
blob: fe364f974268a5222db2e131f44f57c8e4571114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
  "hostname": {
    "tags": "hostname",
    "name": "hostname",
    "property": {
      "description": "hostname",
      "type": "string"
    },
    "updated-by": "Singal, Kapil <ks220y@att.com>",
    "sources": {
      "input": {
        "type": "source-input"
      }
    }
  },
  "service-instance-id": {
    "tags": "service-instance-id, tosca.datatypes.Root, data_type",
    "name": "service-instance-id",
    "property": {
      "description": "To be provided",
      "type": "string"
    },
    "updated-by": "Singal, Kapil <ks220y@att.com>",
    "sources": {
      "input": {
        "type": "source-input",
        "properties": {}
      },
      "processor-db": {
        "type": "source-processor-db",
        "properties": {
          "endpoint-selector": "dynamic-db-source",
          "query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
          "input-key-mapping": {
          },
          "output-key-mapping": {
            "service-instance-id": "artifact_name"
          },
          "key-dependencies" : []
        }
      }
    }
  },
  "vnf-id": {
    "tags": "vnf-id",
    "name": "vnf-id",
    "property": {
      "description": "vnf-id",
      "type": "string"
    },
    "updated-by": "Singal, Kapil <ks220y@att.com>",
    "sources": {
      "input": {
        "type": "source-input",
        "properties": {}
      }
    }
  },
  "vnf_name": {
    "tags": "vnf_name",
    "name": "vnf_name",
    "property": {
      "description": "vnf_name",
      "type": "string"
    },
    "updated-by": "Singal, Kapil <ks220y@att.com>",
    "sources": {
      "primary-config-data": {
        "type": "source-rest",
        "properties": {
          "verb": "GET",
          "type": "JSON",
          "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",
          "path": "/param/0/value",
          "input-key-mapping": {
            "service-instance-id": "service-instance-id",
            "vnf-id": "vnf-id"
          },
          "output-key-mapping": {
            "vnf_name": "value"
          },
          "key-dependencies": [
            "service-instance-id",
            "vnf-id"
          ]
        }
      }
    }
  },
  "aai-get-resource": {
    "tags": "aai-get",
    "name": "aai-get-resource",
    "property": {
      "description": "primary aai data to get resource",
      "type": "string"
    },
    "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
    "sources": {
      "primary-aai-data": {
        "type": "source-rest",
        "properties": {
          "type": "JSON",
          "verb": "GET",
          "url-path": "/aai/v14/network/generic-vnfs/generic-vnf/$vnf-id",
          "path": "",
          "input-key-mapping": {
            "vnf-id": "vnf-id"
          },
          "output-key-mapping": {
          },
          "key-dependencies": [
            "vnf-id"
          ]
        }
      }
    }
  },
  "aai-put-resource": {
    "tags": "aai-put",
    "name": "aai-put-resource",
    "property": {
      "description": "primary aai data to update resource",
      "type": "string"
    },
    "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
    "sources": {
      "primary-aai-data": {
        "type": "source-rest",
        "properties": {
          "type": "JSON",
          "verb": "PUT",
          "url-path": "/query?format=resource",
          "path": "",
          "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}",

          "input-key-mapping": {
            "vnf-id": "vnf-id"
          },
          "output-key-mapping": {
          },
          "key-dependencies": [
            "vnf-id"
          ]
        }
      }
    }
  },
  "aai-post-resource": {
    "tags": "aai-port",
    "name": "aai-port-resource",
    "property": {
      "description": "primary aai data to create new resource",
      "type": "string"
    },
    "updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
    "sources": {
      "primary-aai-data": {
        "type": "source-rest",
        "properties": {
          "type": "JSON",
          "verb": "POST",
          "url-path": "/aai/add/uri/here",
          "path": "",
          "payload": "",
          "input-key-mapping": {
            "vnf-id": "vnf-id"
          },
          "output-key-mapping": {
          },
          "key-dependencies": [
            "vnf-id"
          ]
        }
      }
    }
  }
}