Updated on 2024-01-16 GMT+08:00

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

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Table 2 Query Parameters

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

Table 3 Response body parameters

Parameter

Type

Description

availability_zones

Array of AvailableZone objects

AZ list

request_id

String

Request ID

Table 4 AvailableZone

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.