diff options
Diffstat (limited to 'platform-logic/restapi-templates/src/main/json')
-rw-r--r-- | platform-logic/restapi-templates/src/main/json/sdwan-site.json | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site.json b/platform-logic/restapi-templates/src/main/json/sdwan-site.json index 11eee550..9d9fba4b 100644 --- a/platform-logic/restapi-templates/src/main/json/sdwan-site.json +++ b/platform-logic/restapi-templates/src/main/json/sdwan-site.json @@ -21,33 +21,41 @@ { "sites": [ { - "id": ${prop.id}, - "name": ${prop.name}, - "Locations": [ + "id": "", + "name": ${prop.site.name}, + "locations": [ { - "name": ${prop.location-name}, - "address": ${prop.location-address}, - "postcode": ${prop.location-postcode} + "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": [ - { - "deviceId": ${prop.deviceId}, - "locationName": ${prop.location-name} + + "devices": [${repeat:prop.site.deviceId_length: + { + "deviceId":${prop.site.deviceId[${1}]}, + "locationName": ${prop.site.location-name}, + }, } - ], - "siteType": ${prop.type}, - "role": [${repeat:prop.roles_length: - ${prop.roles[${1}]}, + ], + + "siteType": ${prop.site.type}, + "role": [${repeat:prop.site.roles_length: + ${prop.site.roles[${1}]}, } ], - "controlPoints": [${repeat:prop.controlpoints_length: - ${prop.controlpoints[${1}]}, + "controlPoints": [${repeat:prop.site.controlpoints_length: + ${prop.site.controlpoints[${1}]}, } ], - "description": ${description} + "contact":{ + "emails":[${repeat:prop.site.email_length: + ${prop.site.email[${1}]}, + } + ] + } } ] } - - |