aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src/main/json/sdwan-site.json
blob: 3e40fb92acc0aae3555154467c829d661812c806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
    "sites": [
        {
            "id": "",
            "name": ${prop.site.name},
            "locations": [
                {
                     "name": ${prop.site.location-name},
                     "address": ${prop.site.location-address},
                     "postcode": ${prop.site.location-postcode},
                     "latitude": ${prop.site.location-latitude},
		     "longitude": ${prop.site.location-longitude}
                }
            ],

           "devices": [${repeat:prop.site.deviceId_length:
                  {
                      "deviceId":${prop.site.deviceId[${1}]},
                      "locationName": ${prop.site.location-name},
                  },
                }
           ],

            "siteType": ${prop.site.type},
            "role": [${repeat:prop.site.roles_length:
                       ${prop.site.roles[${1}]},
                      }
                    ],               
            "controlPoints": [${repeat:prop.site.controlpoints_length:
                                ${prop.site.controlpoints[${1}]},
                                }
                             ],
            "contact":{
                "emails":[${repeat:prop.site.email_length:
                                ${prop.site.email[${1}]},
                                }
                         ]
            },
            "description": ${prop.site.description}
        }
    ]
}