Updated on 2025-05-28 GMT+08:00

VPN Gateway

Permission

API

Action

Dependencies

IAM Project

Enterprise Project

Creating a VPN gateway

POST /v5/{project_id}/vpn-gateways

vpn:vpnGateways:create

  • er:instances:list
  • er:instances:get
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subnets:list
  • vpc:subnets:create
  • vpc:subnets:delete
  • vpc:subNetworkInterfaces:update
  • vpc:publicIps:create
  • vpc:publicIps:delete
  • vpc:publicIps:update
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:ports:create
  • vpc:quotas:list
  • vpc:bandwidths:list
  • vpc:ports:get
  • vpc:ports:delete
  • vpc:routeTables:update
  • vpc:routeTables:get
  • vpc:bandwidths:get

Querying a VPN gateway

GET /v5/{project_id}/vpn-gateways/{vgw_id}

vpn:vpnGateways:get

  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • er:instances:list
  • er:instances:get
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subnets:list

Querying the VPN gateway list

GET /v5/{project_id}/vpn-gateways

vpn:vpnGateways:list

  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • er:instances:list
  • er:instances:get
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subnets:list

×

Updating a VPN gateway

PUT /v5/{project_id}/vpn-gateways/{vgw_id}

vpn:vpnGateways:update

  • er:instances:list
  • er:instances:get
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subnets:list
  • vpc:subnets:delete
  • vpc:subNetworkInterfaces:update
  • vpc:publicIps:delete
  • vpc:publicIps:update
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • vpc:ports:get
  • vpc:routeTables:update
  • vpc:routeTables:get

Deleting a VPN gateway

DELETE /v5/{project_id}/vpn-gateways/{vgw_id}

vpn:vpnGateways:delete

  • er:instances:list
  • er:instances:get
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subnets:delete
  • vpc:subNetworkInterfaces:update
  • vpc:publicIps:delete
  • vpc:publicIps:update
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • vpc:ports:get
  • vpc:ports:delete
  • vpc:routeTables:update
  • vpc:routeTables:get

Querying the AZs of VPN gateways (V5)

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

vpn:vpnGatewayAvailabilityZone:list

-

×

Querying the AZs of VPN gateways (V5.1)

GET /v5.1/{project_id}/vpn-gateways/availability-zones

vpn:vpnGatewayAvailabilityZone:list

-

×

Importing certificates for a VPN gateway

POST /v5/{project_id}/vpn-gateways/{vgw_id}/certificate

vpn:vpnGateways:importCertificate

-

Querying certificates of a VPN gateway

GET /v5/{project_id}/vpn-gateways/{vgw_id}/certificate

vpn:vpnGateways:getCertificate

-

Updating certificates of a VPN gateway

PUT /v5/{project_id}/vpn-gateways/{vgw_id}/certificate/{certificate_id}

vpn:vpnGateways:updateCertificate

-

Querying the route table of a VPN gateway

GET /v5/{project_id}/vpn-gateways/{vgw_id}/routing-table

vpn:vpnGateways:getRoutingTable

-

Changing the specification of a pay-per-use VPN gateway

POST /v5/{project_id}/vpn-gateways/{vgw_id}/update-specification

vpn:vpnGateways:updatePostpaidSpecification

-