Listing AZs
Function
This API is used to list AZs.
Debugging
You can debug this API in API Explorer.
Authorization
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permissions listed below are required.
Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
|---|---|---|---|---|---|
ecs:cloudServers:listServersDetails | list | - | g:EnterpriseProjectId | ecs:cloudServers:list | - |
URI
GET /v1/{project_id}/availability-zones
Parameter | Mandatory | Description |
|---|---|---|
project_id | Yes | Definition Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
Request
None
Response
Table 2 describes the response parameters.
Parameter | Type | Description |
|---|---|---|
availability_zones | Array of objects | Definition Specifies the AZ information list. For details, see Table 3. Range N/A |
Parameter | Type | Description |
|---|---|---|
availability_zone_id | String | Definition Specifies the AZ ID. Range N/A |
type | String | Definition Specifies the AZ type. Range
|
mode | String | Definition Specifies the AZ mode. Range
|
public_border_group | String | Definition Specifies the public network border group, which identifies the EIP type and is used to search for EIP resource pools available for an AZ. Range N/A |
alias | String | Definition Specifies the AZ alias. Range N/A |
az_group_ids | Array of strings | Definition Specifies the list of AZ groups that each AZ belongs to. Range N/A |
category | Integer | Definition Specifies the subtype of an AZ type. The values and their mappings are as follows: Range
This field is used to distinguish the type of an edge AZ. The value 0 is the default value and has no specific meaning. |
Example Request
GET https://{endpoint}/v1/{project_id}/availability-zones Example Response
{
"availability_zones": [
{
"availability_zone_id": "br-iaas-test1a",
"type": "Edge",
"mode": "dedicated",
"alias": "IES_test",
"public_border_group": "br-iaas-test1a",
"az_group_ids": [
"br-iaas-test1a"
],
"category": 21
}
]
} Returned Values
For details, see Returned Values for General Requests.
Error Codes
For details, 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
