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.
Calling Method
For details, see Calling APIs.
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 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
availability_zones |
Array of AvailableZone objects |
AZ list |
|
request_id |
String |
Request ID |
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.