886569b8c6085ee7cff343b25ace74b57a51de4a
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sotn-attachment-allotted-resource.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - CCSDK
4  * ================================================================================
5  * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 {
22     "connection-attachment-allotted-resource": [{
23         "allotted-resource-id": ${connection-attachment-ar.allotted-resource-id},
24         "allotted-resource-data": {
25             "allotted-resource-operation-information": {
26                 "allotted-resource-information": {
27                     "allotted-resource-id": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.allotted-resource-id},
28                     "allotted-resource-type": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.allotted-resource-type},
29                     "parent-service-instance-id": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id},
30                     "onap-model-information": {
31                         "model-invariant-uuid": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-invariant-uuid},
32                         "model-customization-uuid": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-customization-uuid},
33                         "model-uuid": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-uuid},
34                         "model-version": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-version}
35                     }
36                 },
37                 "sdnc-request-header": {
38                     "svc-request-id": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id},
39                     "svc-action": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-action}
40                 },
41                 "request-information": {
42                     "request-id": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-id},
43                     "source": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.source},
44                     "order-version": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.order-version},
45                     "order-number": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.order-number},
46                     "notification-url": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.notification-url},
47                     "request-action": ${connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action}
48                 },
49                 "connection-attachment-request-input": {
50                     "param": [
51                         {
52                             "name": "sotnVpnName",
53                             "value": ${prop.connection-attachment.sotnVpnName}
54                         },
55                         {
56                             "name": "access-provider-id",
57                             "value": ${prop.connection-attachment.access-provider-id}
58                         },
59                         {
60                             "name": "access-client-id",
61                             "value": ${prop.connection-attachment.access-client-id}
62                         },
63                         {
64                             "name": "access-topology-id",
65                             "value": ${prop.connection-attachment.access-topology-id}
66                         },
67                         {
68                             "name": "access-node-id",
69                             "value": ${prop.connection-attachment.access-node-id}
70                         },
71                         {
72                             "name": "access-ltp-id",
73                             "value": ${prop.connection-attachment.access-ltp-id}
74                         },
75                         {
76                             "name": "clientSignal",
77                             "value": ${prop.connection-attachment.clientSignal}
78                         },
79                         {
80                             "name": "cVLAN",
81                             "value": ${prop.connection-attachment.cVLAN}
82                         }
83                     ]
84                 }
85             },
86             "connection-attachment-topology": {
87                 "allotted-resource-identifiers": {
88                     "consuming-service-instance-id": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id},
89                     "allotted-resource-name": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-name},
90                     "allotted-resource-id": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-id},
91                     "parent-service-instance-id": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.parent-service-instance-id},
92                     "allotted-resource-type": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-type}
93                 },
94                 "onap-model-information": {
95                     "model-invariant-uuid": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.model-invariant-uuid},
96                     "model-customization-uuid": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.model-customization-uuid},
97                     "model-uuid": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.model-uuid},
98                     "model-version": ${connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.model-version}
99                 },
100                 "connection-attachment-parameters": {
101                     "param": [
102                         {
103                             "name": "sotnVpnName",
104                             "value": ${prop.connection-attachment.sotnVpnName}
105                         },
106                         {
107                             "name": "access-provider-id",
108                             "value": ${prop.connection-attachment.access-provider-id}
109                         },
110                         {
111                             "name": "access-client-id",
112                             "value": ${prop.connection-attachment.access-client-id}
113                         },
114                         {
115                             "name": "access-topology-id",
116                             "value": ${prop.connection-attachment.access-topology-id}
117                         },
118                         {
119                             "name": "access-node-id",
120                             "value": ${prop.connection-attachment.access-node-id}
121                         },
122                         {
123                             "name": "access-ltp-id",
124                             "value": ${prop.connection-attachment.access-ltp-id}
125                         },
126                         {
127                             "name": "clientSignal",
128                             "value": ${prop.connection-attachment.clientSignal}
129                         },
130                         {
131                             "name": "cVLAN",
132                             "value": ${prop.connection-attachment.cVLAN}
133                         }
134                     ]
135                 }
136             },
137             "connection-attachment-parameters": {
138                 "param": [
139                     {
140                         "name": "sotnVpnName",
141                         "value": ${prop.connection-attachment.sotnVpnName}
142                     },
143                     {
144                         "name": "access-provider-id",
145                         "value": ${prop.connection-attachment.access-provider-id}
146                     },
147                     {
148                         "name": "access-client-id",
149                         "value": ${prop.connection-attachment.access-client-id}
150                     },
151                     {
152                         "name": "access-topology-id",
153                         "value": ${prop.connection-attachment.access-topology-id}
154                     },
155                     {
156                         "name": "access-node-id",
157                         "value": ${prop.connection-attachment.access-node-id}
158                     },
159                     {
160                         "name": "access-ltp-id",
161                         "value": ${prop.connection-attachment.access-ltp-id}
162                     },
163                     {
164                         "name": "clientSignal",
165                         "value": ${prop.connection-attachment.clientSignal}
166                     },
167                     {
168                         "name": "cVLAN",
169                         "value": ${prop.connection-attachment.cVLAN}
170                     }
171                 ]
172             },
173             "allotted-resource-oper-status": {
174                 "last-action": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action},
175                 "modify-timestamp": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.modify-timestamp},
176                 "last-order-status": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-order-status},
177                 "create-timestamp": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp},
178                 "order-status": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status},
179                 "last-rpc-action": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action},
180                 "last-svc-request-id": ${connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id}
181             },
182         },
183         "allotted-resource-status" : {
184             "action": ${connection-attachment-ar.allotted-resource-status.action},
185             "rpc-name": ${connection-attachment-ar.allotted-resource-status.rpc-name},
186             "rpc-action": ${connection-attachment-ar.allotted-resource-status.rpc-action}
187         }
188     }]
189 }
190
191