This API is used to query all AZs.
GET https://{endpoint}/v2/{project_id}/os-availability-zone
Parameter |
Type |
Description |
|---|---|---|
availabilityZoneInfo |
list |
Specifies the list of queried AZs. For details, see Parameters in the availabilityZoneInfo field. |
error |
Object |
Specifies the error message returned when an error occurs. For details, see Parameters in the error field. |
Parameter |
Type |
Description |
|---|---|---|
zoneState |
Object |
Specifies the status of the AZ. For details, see Parameter in the zoneState field. |
zoneName |
String |
Specifies the AZ name. |
Parameter |
Type |
Description |
|---|---|---|
available |
Boolean |
Specifies whether the AZ is available.
|
Parameter |
Type |
Description |
|---|---|---|
message |
String |
Specifies the error message returned when an error occurs. |
code |
String |
Specifies the error code returned when 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.