Querying AZs
Function
This API is used to query the AZ information of the current region.
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 AvailableZones objects |
Array of AZs. |
Parameter |
Type |
Description |
---|---|---|
code |
String |
AZ code. |
port |
String |
AZ port. |
name |
String |
AZ name. |
id |
String |
AZ ID. |
resource_availability |
String |
Whether the AZ has available resources.
Enumeration values:
|
Example Requests
GET https://{dcs_endpoint}/v2/available-zones
Example Responses
Status code: 200
The query is successful.
{ "region_id" : "region00", "available_zones" : [ { "code" : "region01", "port" : "8403", "name" : "AZ 1.", "id" : "effdcbc7d4d64a02aa1fa26b42f56533", "resource_availability" : "true" }, { "code" : "region02", "port" : "8404", "name" : "AZ 2.", "id" : "a0865121f83b41cbafce65930a22a6e8", "resource_availability" : "true" }, { "code" : "region03", "port" : "8408", "name" : "AZ 3.", "id" : "2dcb154ac2724a6d92e9bcc859657c1e", "resource_availability" : "true" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
The query is successful. |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot