Updated on 2024-07-29 GMT+08:00

Querying the AZs of P2C VPN Gateways

Function

This API is used to query the AZs of P2C VPN gateways.

Calling Method

For details, see Calling APIs.

URI

GET /v5/{project_id}/p2c-vpn-gateways/availability-zones

Table 1 Parameter description

Parameter

Type

Mandatory

Description

project_id

String

Yes

Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID.

Table 2 Parameter in a query request

Parameter

Type

Mandatory

Description

flavor

String

No

  • Specifies the specification of the P2C VPN gateway.
  • Value range:

    Professional1

Request

  • Request parameters

    None

  • Example request
    GET https://{Endpoint}/v5/{project_id}/p2c-vpn-gateways/availability-zones?flavor=Professional1

Response

  • Response parameters

    Returned status code 200: successful operation

    Table 3 Parameters in the response body

    Parameter

    Type

    Description

    availability_zones

    Array of strings

    Specifies the list of AZs.

    request_id

    String

    Specifies a request ID.

  • Example response
    {
        "availability_zones": [
    		"cn-south-1f",            
    		"cn-south-1e"
    	],
        "request_id": "c63d850876bcddbdfbd11776cce57914"
    }

Status Codes

For details, see Status Codes.