Querying AZs¶
Function¶
This API is used to query AZs where enterprise routers can be created. An enterprise router can be created only when an AZ is in the available state.
URI¶
GET /v3/{project_id}/enterprise-router/availability-zones
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID |
Parameter | Mandatory | Type | Description |
---|---|---|---|
instance_id | No | String | Enterprise router ID |
bandwidth_size | No | Integer | Bandwidth size, in Mbit/s Minimum: -1 |
Request Parameters¶
None
Response Parameters¶
Status code: 200
Parameter | Type | Description |
---|---|---|
availability_zones | Array of AvailableZone objects | AZ list |
request_id | String | Request ID |
Parameter | Type | Description |
---|---|---|
code | String | AZ code |
state | String | Whether the AZ is available. Value options: available and unavailable |
Example Requests¶
Querying AZs
GET https://{erouter_endpoint}/v3/0605767a9980d5762fbcc00b3537e757/enterprise-router/availability-zones
Example Responses¶
Status code: 200
OK
{
"availability_zones" : [ {
"code" : "az1",
"state" : "available"
}, {
"code" : "az2",
"state" : "unavailable"
} ]
}
Status Codes¶
Status Code | Description |
---|---|
200 | OK |
Error Codes¶
See Error Codes.