forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
11 KiB
11 KiB
Querying All AZs
Function
This API is used to query all AZs.
URI
Request
- Example request
GET https://{endpoint}/v2/{project_id}/os-availability-zone
Response
- Response parameters
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.
- Parameters in the availabilityZoneInfo field
Parameter
Type
Description
zoneState
Object
The AZ status. For details, see Parameter in the zoneState field.
zoneName
String
The AZ name.
- Parameter in the zoneState field
Parameter
Type
Description
available
Boolean
Whether the AZ is available.- true: available
- false: unavailable
- Parameters in the error field
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.
- Example response
{ "availabilityZoneInfo": [ { "zoneState": { "available": true }, "zoneName": "az-dc-1" } ] }
or
{ "error": { "message": "XXXX", "code": "XXX" } }
Error Codes
For details, see Error Codes.
Parent topic: AZ Query