Skip to main content

DatacenterCountryCollection Schema

Data structure for Datacenter Country Collection objects.

Item Type​

This is a collection (list) of DatacenterCountry items.

Usage​

# Example: Working with DatacenterCountryCollection
items = [
{"country":"country-value-1","id":1,"name":"name-value-1"},
{"country":"country-value-2","id":2,"name":"name-value-2"}
]

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

JSON Example​

[
{
"country": "country-value-1",
"id": 1,
"name": "name-value-1"
},
{
"country": "country-value-2",
"id": 2,
"name": "name-value-2"
}
]