Updated on 2026-10-22 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.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

vpn::listAvailabilityZones

list

-

-

-

-

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.