This API is used to query all available AZs when you create a load balancer.
One set of AZs is returned. When you create a load balancer, you can select one or more AZs only in the set.
In special scenarios, load balancers must be created in specific AZs. In the returned one or more sets of AZs, you can select as many AZs as you want as long as the selected AZs are in the same set. For example, if two sets [az1,az2] and [az2,az3] are returned, you can select az1 and az2 or az2 and az3, but cannot select az1 and az3.
GET /v3/{project_id}/elb/availability-zones
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the token used for IAM authentication. |
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
availability_zones |
Array<Array<AvailabilityZone>> |
Specifies the AZs that are available during load balancer creation. |
request_id |
String |
Specifies the request ID. The value is automatically generated. |
GET
https://{ELB_Endpoint}/v3/060576782980d5762f9ec014dd2f1148/elb/availability-zones
Status code: 200
Successful request.
{
"availability_zones" : [ [ {
"state" : "ACTIVE",
"code" : "az1"
}, {
"state" : "ACTIVE",
"code" : "az2"
}, {
"state" : "ACTIVE",
"code" : "az3"
} ] ],
"request_id" : "0d799435-259e-459f-b2bc-0beee06f6a77"
}
Status Code |
Description |
|---|---|
200 |
Successful request. |
See Error Codes.