CCVPN RestApi template changes
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sdwan-site.json
1 {
2     "sites": [
3         {
4             "id": "",
5             "name": ${prop.site.name},
6             "locations": [
7                 {
8                      "name": ${prop.site.location-name},
9                      "address": ${prop.site.location-address},
10                      "postcode": ${prop.site.location-postcode},
11                      "latitude": ${prop.site.location-latitude},
12                      "longitude": ${prop.site.location-longitude}
13                 }
14             ],
15
16            "devices": [${repeat:prop.site.deviceId_length:
17                   {
18                       "deviceId":${prop.site.deviceId[${1}]},
19                       "locationName": ${prop.site.location-name},
20                   },
21                 }
22            ],
23
24             "siteType": ${prop.site.type},
25             "role": [${repeat:prop.site.roles_length:
26                        ${prop.site.roles[${1}]},
27                       }
28                     ],               
29             "controlPoints": [${repeat:prop.site.controlpoints_length:
30                                 ${prop.site.controlpoints[${1}]},
31                                 }
32                              ],
33             "contact":{
34                 "emails":[${repeat:prop.site.email_length:
35                                 ${prop.site.email[${1}]},
36                                 }
37                          ]
38             },
39             "description": ${prop.site.description}
40         }
41     ]
42 }