Skip to main content

LocationDetailsCollection Schema

Data structure for Location Details Collection objects.

Item Type​

This is a collection (list) of LocationDetails items.

Usage​

# Example: Working with LocationDetailsCollection
items = [
{"location_id":1,"location_name":"location_name-value-1","primary_datacenter":"primary_datacenter-value-1","primary_tunnel_has_traffic":true,"secondary_datacenter":"secondary_datacenter-value-1"},
{"location_id":2,"location_name":"location_name-value-2","primary_datacenter":"primary_datacenter-value-2","primary_tunnel_has_traffic":true,"secondary_datacenter":"secondary_datacenter-value-2"}
]

# Pass to an action that requires this collection type
resource.some_action(body=items)

JSON Example​

[
{
"location_id": 1,
"location_name": "location_name-value-1",
"primary_datacenter": "primary_datacenter-value-1",
"primary_tunnel_has_traffic": true,
"secondary_datacenter": "secondary_datacenter-value-1"
},
{
"location_id": 2,
"location_name": "location_name-value-2",
"primary_datacenter": "primary_datacenter-value-2",
"primary_tunnel_has_traffic": true,
"secondary_datacenter": "secondary_datacenter-value-2"
}
]