Listing AZ Information
Function
This API is used to query the AZ ID for creating an instance.
Calling Method
For details, see Calling APIs.
URI
GET /v2/available-zones
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
region_id |
String |
Parameter description: Region ID. Value range: N/A |
|
available_zones |
Array of AvailableZonesResp objects |
Parameter description: Array of AZs. |
|
Parameter |
Type |
Description |
|---|---|---|
|
soldOut |
Boolean |
Parameter description: Indicates whether resources are sold out. Value range:
|
|
id |
String |
Parameter description: AZ ID. Value range: N/A |
|
code |
String |
Parameter description: AZ code. Value range: N/A |
|
name |
String |
Parameter description: AZ name. Value range: N/A |
|
port |
String |
Parameter description: AZ port. Value range: N/A |
|
resource_availability |
String |
Parameter description: Indicates whether the AZ has available resources. Value range:
|
|
default_az |
Boolean |
Parameter description: Whether the AZ is the default AZ. Value range:
|
|
remain_time |
Long |
Parameter description: Remaining time, which is a Unix timestamp. Value range: N/A |
|
ipv6_enable |
Boolean |
Parameter description: Whether IPv6 is supported. Value range:
|
Example Requests
GET https://{endpoint}/v2/available-zones
Example Responses
Status code: 200
The AZ information is queried successfully.
{
"region_id" : "xxx",
"available_zones" : [ {
"soldOut" : false,
"id" : "d539378ec1314c85b76fefa3f7071458",
"code" : "xxx",
"name" : "AZ 2.",
"port" : "8003",
"resource_availability" : "true",
"default_az" : true,
"remain_time" : 9223372036854776000,
"ipv6_enable" : false
}, {
"soldOut" : false,
"id" : "9f1c5806706d4c1fb0eb72f0a9b18c77",
"code" : "xxx",
"name" : "AZ 3.",
"port" : "443",
"resource_availability" : "true",
"default_az" : false,
"remain_time" : 9223372036854776000,
"ipv6_enable" : false
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The AZ information is queried successfully. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.