availabilityZoneAndComplex-fromCloudRegion
The "availabilityZoneAndComplex-fromCloudRegion" query allows a client to provide A&AI a cloud-owner and cloud-region-id to retrieve the availability-zones and complex.
Input | Output | Users | Release(s) |
---|---|---|---|
cloud-owner cloud-region-id | availability-zones complex | Amsterdam |
Details
Example payload
{
"start" : ["cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}"],
"query" : "query/availabilityZoneAndComplex-fromCloudRegion"
}
The Traversal
Only objects at the end of a line will be returned.
cloud-region > availability-zone cloud-region > complex
Example Output
{
"results":[
{
"id":"2433147120",
"node-type":"availability-zone",
"url":"/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloudowner-987654321/cloudregion-id-rdm3/availability-zones/availability-zone/az-987654321",
"properties":{
"availability-zone-name":"az-987654321",
"hypervisor-type":"example-hypervisor-type-val-49254",
"operational-status":"example-operational-status-val-97497",
"resource-version":"1506534357577"
},
"related-to":[
{
"id":"1933324480",
"node-type":"cloud-region",
"url":"/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloudowner-987654321/cloudregion-id-rdm3"
}
]
},
{
"id":"1933320384",
"node-type":"complex",
"url":"/aai/v16/cloud-infrastructure/complexes/complex/complex-data-9876543210",
"properties":{
"physical-location-id":"complex-data-9876543210",
"complex-name":"sample-comp3",
"resource-version":"1506534357136",
"physical-location-type":"Example Type",
"street1":"200 Sample Park Drive",
"city":"Tallahassee",
"state":"FL",
"postal-code":"07749",
"country":"USA",
"region":"US",
"latitude":"30.4026",
"longitude":"-84.1168"
},
"related-to":[
{
"id":"1933324480",
"node-type":"cloud-region",
"url":"/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloudowner-987654321/cloudregion-id-rdm3"
}
]
}
]
}