This API is used to query all available AZs when you create a dedicated load balancer.
One set of AZs is returned. When you create a dedicated load balancer, you can select one or more AZs only in the set.
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. |
Parameter |
Type |
Description |
|---|---|---|
state |
String |
Specifies the AZ status. The value can only be ACTIVE. |
code |
String |
Specifies the AZ code. |
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.
Parent topic: AZ