NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / platform-logic / restapi-templates / src / main / json / self-serve-vfmodule-assignments.json
1 {
2     "vf-module": [{
3         "vf-module-id": ${vf.vf-module-id},
4         "vf-module-data": {
5             "sdnc-request-header": {
6                 "svc-request-id": ${vf.vf-module-data.sdnc-request-header.svc-request-id},
7                 "svc-action": ${vf.vf-module-data.sdnc-request-header.svc-action},
8                 "svc-notification-url": ${vf.vf-module-data.sdnc-request-header.svc-notification-url}
9             },
10             "request-information": {
11                 "request-id": ${vf.vf-module-data.request-information.request-id},
12                 "request-action": ${vf.vf-module-data.request-information.request-action},
13                 "source": ${vf.vf-module-data.request-information.source},
14                 "notification-url": ${vf.vf-module-data.request-information.notification-url},
15                 "order-number": ${vf.vf-module-data.request-information.order-number},
16                 "order-version": ${vf.vf-module-data.request-information.order-version}
17             },
18             "service-information": {
19                 "service-id": ${vf.vf-module-data.service-information.service-id},
20                 "subscription-service-type": ${vf.vf-module-data.service-information.subscription-service-type},
21                 "onap-model-information": {
22                     "model-invariant-uuid": ${vf.vf-module-data.service-information.onap-model-information.model-invariant-uuid},
23                     "model-customization-uuid": ${vf.vf-module-data.service-information.onap-model-information.model-customization-uuid},
24                     "model-uuid": ${vf.vf-module-data.service-information.onap-model-information.model-uuid},
25                     "model-version": ${vf.vf-module-data.service-information.onap-model-information.model-version},
26                     "model-name": ${vf.vf-module-data.service-information.onap-model-information.model-name}
27                 },
28                 "service-instance-id": ${vf.vf-module-data.service-information.service-instance-id},
29                 "global-customer-id": ${vf.vf-module-data.service-information.global-customer-id},
30                 "subscriber-name": ${vf.vf-module-data.service-information.subscriber-name}
31             },
32             "vnf-information": {
33                 "vnf-id": ${vf.vf-module-data.vnf-information.vnf-id},
34                 "vnf-type": ${vf.vf-module-data.vnf-information.vnf-type},
35                 "vnf-name": ${vf.vf-module-data.vnf-information.vnf-name},
36                 "onap-model-information": {
37                     "model-invariant-uuid": ${vf.vf-module-data.vnf-information.onap-model-information.model-invariant-uuid},
38                     "model-customization-uuid": ${vf.vf-module-data.vnf-information.onap-model-information.model-customization-uuid},
39                     "model-uuid": ${vf.vf-module-data.vnf-information.onap-model-information.model-uuid},
40                     "model-version": ${vf.vf-module-data.vnf-information.onap-model-information.model-version},
41                     "model-name": ${vf.vf-module-data.vnf-information.onap-model-information.model-name}
42                 }
43             },
44             "vf-module-information": {
45                 "vf-module-id": ${vf.vf-module-data.vf-module-information.vf-module-id},
46                 "vf-module-type": ${vf.vf-module-data.vf-module-information.vf-module-type},
47                 "onap-model-information": {
48                     "model-invariant-uuid": ${vf.vf-module-data.vf-module-information.onap-model-information.model-invariant-uuid},
49                     "model-customization-uuid": ${vf.vf-module-data.vf-module-information.onap-model-information.model-customization-uuid},
50                     "model-uuid": ${vf.vf-module-data.vf-module-information.onap-model-information.model-uuid},
51                     "model-version": ${vf.vf-module-data.vf-module-information.onap-model-information.model-version},
52                     "model-name": ${vf.vf-module-data.vf-module-information.onap-model-information.model-name}
53                 }
54             },
55             "vf-module-request-input": {
56                 "request-version": ${vf.vf-module-data.vf-module-request-input.request-version},
57                 "vf-module-name": ${vf.vf-module-data.vf-module-request-input.vf-module-name},
58                 "tenant": ${vf.vf-module-data.vf-module-request-input.tenant},
59                 "aic-cloud-region": ${vf.vf-module-data.vf-module-request-input.aic-cloud-region},
60                 "aic-clli": ${vf.vf-module-data.vf-module-request-input.aic-clli},
61                 "vf-module-input-parameters": {
62                     "param": [
63 ${repeat:vf.vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length:
64                         {
65                             "name": ${vf.vf-module-data.vf-module-request-input.vf-module-input-parameters.param[${1}].name},
66                             "value": ${vf.vf-module-data.vf-module-request-input.vf-module-input-parameters.param[${1}].value}
67                         },
68 }
69                     ]
70                 }
71             },
72             "vf-module-topology": {
73                 "vf-module-topology-identifier": {
74                     "vf-module-id": ${vf.vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id},
75                     "vf-module-name": ${vf.vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-name},
76                     "vf-module-type": ${vf.vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-type}
77                 },
78                 "onap-model-information": {
79                     "model-invariant-uuid": ${vf.vf-module-data.vf-module-topology.onap-model-information.model-invariant-uuid},
80                     "model-customization-uuid": ${vf.vf-module-data.vf-module-topology.onap-model-information.model-customization-uuid},
81                     "model-uuid": ${vf.vf-module-data.vf-module-topology.onap-model-information.model-uuid},
82                     "model-version": ${vf.vf-module-data.vf-module-topology.onap-model-information.model-version},
83                     "model-name": ${vf.vf-module-data.vf-module-topology.onap-model-information.model-name}
84                 },
85                 "vf-module-assignments": {
86                     "vms": {
87                         "vm": [
88 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm_length:
89                             {
90                                 "vm-type": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-type},
91                                 "onap-model-information": {
92                                     "model-invariant-uuid": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-invariant-uuid},
93                                     "model-customization-uuid": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-customization-uuid},
94                                     "model-version": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-version}
95                                 },
96                                 "vm-names": {
97                                     "vnfc-names": [
98 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names_length:
99                                         {
100                                             "vnfc-name": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-name},
101                                             "vnfc-networks": {
102                                                 "vnfc-network-data": [
103 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data_length:
104                                                     {
105                                                         "vnfc-network-role": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-network-role},
106                                                         "vnfc-type": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-type},
107                                                         "connection-point": {
108                                                             "connection-point-id": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.connection-point-id},
109                                                                 "vlan-data": [
110 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data_length:
111                                                                 {
112                                                                         "vlan-uuid": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-uuid},
113                                                                         "vlan-tag-id": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-tag-id},
114                                                                         "vlan-tag-description": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-tag-description},
115                                                                         "vlan-role": ${vf.vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-role}
116                                                                 },
117 }
118                                                                 ]
119                                                         }
120                                                                                                         },
121 }
122                                                 ]
123                                                                                         }
124                                                                                 },
125 }
126                                     ]
127                                 }
128                                                         },
129 }
130                         ]
131                     }
132                 },
133                 "vf-module-parameters": {
134                     "param": [
135 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-parameters.param_length:
136                         {
137                             "name": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].name},
138                             "value": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].value},
139                             "resource-resolution-data": {
140                                 "resource-key": [
141 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key_length:
142                                     {
143                                         "name": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key[${2}].name},
144                                         "value": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key[${2}].value}
145                                     },
146 }
147                                 ],
148                                 "status": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.status},
149                                 "capability-name": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.capability-name}
150                             },
151                         },
152 }
153                     ]
154                 },
155                 "tenant": ${vf.vf-module-data.vf-module-topology.tenant},
156                 "aic-cloud-region": ${vf.vf-module-data.vf-module-topology.aic-cloud-region},
157                 "aic-clli": ${vf.vf-module-data.vf-module-topology.aic-clli},
158                 "sdnc-generated-cloud-resources": ${vf.vf-module-data.vf-module-topology.sdnc-generated-cloud-resources}
159             },
160             "vf-module-level-oper-status": {
161                 "order-status": ${vf.vf-module-data.vf-module-level-oper-status.order-status},
162                 "last-rpc-action": ${vf.vf-module-data.vf-module-level-oper-status.last-rpc-action},
163                 "last-action": ${vf.vf-module-data.vf-module-level-oper-status.last-action},
164                 "last-svc-request-id": ${vf.vf-module-data.vf-module-level-oper-status.last-svc-request-id},
165                 "last-order-status": ${vf.vf-module-data.vf-module-level-oper-status.last-order-status},
166                 "create-timestamp": ${vf.vf-module-data.vf-module-level-oper-status.create-timestamp},
167                 "modify-timestamp": ${vf.vf-module-data.vf-module-level-oper-status.modify-timestamp}
168             }
169         }
170     }]
171 }