NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / platform-logic / restapi-templates / src / main / json / self-serve-vnf-assignments.json
1 {
2     "vnf": [{
3         "vnf-id": ${vf.vnf-id},
4         "vnf-data": {
5             "sdnc-request-header": {
6                 "svc-request-id": ${vf.vnf-data.sdnc-request-header.svc-request-id},
7                 "svc-action": ${vf.vnf-data.sdnc-request-header.svc-action},
8                 "svc-notification-url": ${vf.vnf-data.sdnc-request-header.svc-notification-url}
9             },
10             "request-information": {
11                 "request-id": ${vf.vnf-data.request-information.request-id},
12                 "request-action": ${vf.vnf-data.request-information.request-action},
13                 "source": ${vf.vnf-data.request-information.source},
14                 "notification-url": ${vf.vnf-data.request-information.notification-url},
15                 "order-number": ${vf.vnf-data.request-information.order-number},
16                 "order-version": ${vf.vnf-data.request-information.order-version}
17             },
18             "service-information": {
19                 "service-id": ${vf.vnf-data.service-information.service-id},
20                 "subscription-service-type": ${vf.vnf-data.service-information.subscription-service-type},
21                 "onap-model-information": {
22                     "model-invariant-uuid": ${vf.vnf-data.service-information.onap-model-information.model-invariant-uuid},
23                     "model-customization-uuid": ${vf.vnf-data.service-information.onap-model-information.model-customization-uuid},
24                     "model-uuid": ${vf.vnf-data.service-information.onap-model-information.model-uuid},
25                     "model-version": ${vf.vnf-data.service-information.onap-model-information.model-version},
26                     "model-name": ${vf.vnf-data.service-information.onap-model-information.model-name}
27                 },
28                 "service-instance-id": ${vf.vnf-data.service-information.service-instance-id},
29                 "global-customer-id": ${vf.vnf-data.service-information.global-customer-id},
30                 "subscriber-name": ${vf.vnf-data.service-information.subscriber-name}
31             },
32             "vnf-information": {
33                 "vnf-id": ${vf.vnf-data.vnf-information.vnf-id},
34                 "vnf-type": ${vf.vnf-data.vnf-information.vnf-type},
35                 "vnf-name": ${vf.vnf-data.vnf-information.vnf-name},
36                 "onap-model-information": {
37                     "model-invariant-uuid": ${vf.vnf-data.vnf-information.onap-model-information.model-invariant-uuid},
38                     "model-customization-uuid": ${vf.vnf-data.vnf-information.onap-model-information.model-customization-uuid},
39                     "model-uuid": ${vf.vnf-data.vnf-information.onap-model-information.model-uuid},
40                     "model-version": ${vf.vnf-data.vnf-information.onap-model-information.model-version},
41                     "model-name": ${vf.vnf-data.vnf-information.onap-model-information.model-name}
42                 }
43             },
44             "vnf-request-input": {
45                 "request-version": ${vf.vnf-data.vnf-request-input.request-version},
46                 "vnf-name": ${vf.vnf-data.vnf-request-input.vnf-name},
47                 "tenant": ${vf.vnf-data.vnf-request-input.tenant},
48                 "aic-cloud-region": ${vf.vnf-data.vnf-request-input.aic-cloud-region},
49                 "aic-clli": ${vf.vnf-data.vnf-request-input.aic-clli},
50                 "vnf-input-parameters": {
51                     "param": [
52         ${repeat:vf.vnf-data.vnf-request-input.vnf-input-parameters.param_length:
53                         {
54                             "name": ${vf.vnf-data.vnf-request-input.vnf-input-parameters.param[${1}].name},
55                             "value": ${vf.vnf-data.vnf-request-input.vnf-input-parameters.param[${1}].value}
56                         },
57         }
58                     ]
59                 }
60             },
61             "vnf-topology": {
62                 "vnf-topology-identifier-structure": {
63                     "vnf-id": ${vf.vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id},
64                     "vnf-name": ${vf.vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name},
65                     "vnf-type": ${vf.vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type}
66                 },
67                 "onap-model-information": {
68                     "model-invariant-uuid": ${vf.vnf-data.vnf-topology.onap-model-information.model-invariant-uuid},
69                     "model-customization-uuid": ${vf.vnf-data.vnf-topology.onap-model-information.model-customization-uuid},
70                     "model-uuid": ${vf.vnf-data.vnf-topology.onap-model-information.model-uuid},
71                     "model-version": ${vf.vnf-data.vnf-topology.onap-model-information.model-version},
72                     "model-name": ${vf.vnf-data.vnf-topology.onap-model-information.model-name}
73                 },
74                 "vnf-parameters-data": {
75                     "param": [
76         ${repeat:vf.vnf-data.vnf-topology.vnf-parameters-data.param_length:
77                         {
78                             "name": ${vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].name},
79                             "value": ${vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].value},
80                             "resource-resolution-data": {
81                                 "resource-key": [
82                 ${repeat:vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].resource-resolution-data.resource-key_length:
83                                     {
84                                         "name": ${vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].resource-resolution-data.resource-key[${2}].name},
85                                         "value": ${vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].resource-resolution-data.resource-key[${2}].value}
86                                     },
87                 }
88                                 ],
89                                 "status": ${vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].resource-resolution-data.status},
90                                 "capability-name": ${vf.vnf-data.vnf-topology.vnf-parameters-data.param[${1}].resource-resolution-data.capability-name}
91                             },
92                         },
93         }
94                     ]
95                 },
96                 "tenant": ${vf.vnf-data.vnf-topology.tenant},
97                 "aic-cloud-region": ${vf.vnf-data.vnf-topology.aic-cloud-region},
98                 "aic-clli": ${vf.vnf-data.vnf-topology.aic-clli}
99                 "sdnc-generated-cloud-resources": ${vf.vnf-data.vnf-topology.sdnc-generated-cloud-resources}
100             },
101             "vnf-level-oper-status": {
102                 "order-status": ${vf.vnf-data.vnf-level-oper-status.order-status},
103                 "last-rpc-action": ${vf.vnf-data.vnf-level-oper-status.last-rpc-action},
104                 "last-action": ${vf.vnf-data.vnf-level-oper-status.last-action},
105                 "last-svc-request-id": ${vf.vnf-data.vnf-level-oper-status.last-svc-request-id},
106                 "last-order-status": ${vf.vnf-data.vnf-level-oper-status.last-order-status},
107                 "create-timestamp": ${vf.vnf-data.vnf-level-oper-status.create-timestamp},
108                 "modify-timestamp": ${vf.vnf-data.vnf-level-oper-status.modify-timestamp}
109             }
110         }
111     }]
112 }