c62d0a3e19a7b30d1edae6bbe6e83fe487969bbf
[sdnc/oam.git] / 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-parameters": {
86                     "param": [
87         ${repeat:vf.vf-module-data.vf-module-topology.vf-module-parameters.param_length:
88                         {
89                             "name": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].name},
90                             "value": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].value},
91                             "resource-resolution-data": {
92                                 "resource-key": [
93                 ${repeat:vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key_length:
94                                     {
95                                         "name": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key[${2}].name},
96                                         "value": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key[${2}].value}
97                                     },
98                 }
99                                 ],
100                                 "status": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.status},
101                                 "capability-name": ${vf.vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.capability-name}
102                             },
103                         },
104         }
105                     ]
106                 },
107                 "tenant": ${vf.vf-module-data.vf-module-topology.tenant},
108                 "aic-cloud-region": ${vf.vf-module-data.vf-module-topology.aic-cloud-region},
109                 "aic-clli": ${vf.vf-module-data.vf-module-topology.aic-clli},
110                 "sdnc-generated-cloud-resources": ${vf.vf-module-data.vf-module-topology.sdnc-generated-cloud-resources}
111             },
112             "vf-module-level-oper-status": {
113                 "order-status": ${vf.vf-module-data.vf-module-level-oper-status.order-status},
114                 "last-rpc-action": ${vf.vf-module-data.vf-module-level-oper-status.last-rpc-action},
115                 "last-action": ${vf.vf-module-data.vf-module-level-oper-status.last-action},
116                 "last-svc-request-id": ${vf.vf-module-data.vf-module-level-oper-status.last-svc-request-id},
117                 "last-order-status": ${vf.vf-module-data.vf-module-level-oper-status.last-order-status},
118                 "create-timestamp": ${vf.vf-module-data.vf-module-level-oper-status.create-timestamp},
119                 "modify-timestamp": ${vf.vf-module-data.vf-module-level-oper-status.modify-timestamp}
120             }
121         }
122     }]
123 }