Listing AZ Information¶
Function¶
This API is used to query the AZ ID for creating an instance.
URI¶
GET /v2/available-zones
Request Parameters¶
None
Response Parameters¶
Status code: 200
Parameter | Type | Description |
---|---|---|
region_id | String | Region ID. |
available_zones | Array of AvailableZonesResp objects | Array of AZs. |
Parameter | Type | Description |
---|---|---|
id | String | AZ ID. |
code | String | AZ code. |
name | String | AZ name. |
port | String | AZ port. |
resource_availability | String | Indicates whether the AZ has available resources. |
Example Requests¶
GET https://{endpoint}/v2/available-zones
Example Responses¶
Status code: 200
The AZ information is queried successfully.
The instance is queried. An example returned result is as follows.
{ "region_id" : "xxx", "available_zones" : [ { "id" : "d539378ec1314c85b76fefa3f7071458", "code" : "xxx", "name" : "AZ 2.", "port" : "8003", "resource_availability" : "true" }, { "id" : "9f1c5806706d4c1fb0eb72f0a9b18c77", "code" : "xxx", "name" : "AZ 3.", "port" : "443", "resource_availability" : "true" } ] }
Status Codes¶
Status Code | Description |
---|---|
200 | The AZ information is queried successfully. |
Error Codes¶
See Error Codes.