SOTN siteInstance DGs
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sdwan-site.json
index 11eee55..9d9fba4 100644 (file)
 {
     "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}]},
+                                }
+                         ]
+            }
         }
     ]
 }
-
-