This API is used to query all AZs.
GET https://{endpoint}/v2/{project_id}/os-availability-zone
Parameter |
Type |
Description |
---|---|---|
availabilityZoneInfo |
list |
The list of queried AZs. For details, see Parameters in the availabilityZoneInfo field. |
error |
Object |
The error message returned if an error occurs. For details, see Parameters in the error field. |
Parameter |
Type |
Description |
---|---|---|
zoneState |
Object |
The AZ status. For details, see Parameter in the zoneState field. |
zoneName |
String |
The AZ name. |
Parameter |
Type |
Description |
---|---|---|
available |
Boolean |
Whether the AZ is available.
|
Parameter |
Type |
Description |
---|---|---|
message |
String |
The error message returned if an error occurs. |
code |
String |
The error code returned if an error occurs. For details about the error code, see Error Codes. |
{ "availabilityZoneInfo": [ { "zoneState": { "available": true }, "zoneName": "az-dc-1" } ] }
or
{ "error": { "message": "XXXX", "code": "XXX" } }
For details, see Error Codes.