Updated on 2026-06-11 GMT+08:00

VPN Connection

Permission

API

Action

Dependencies

IAM Project

Enterprise Project

Creating a VPN connection

POST /v5/{project_id}/vpn-connection

vpn:vpnConnections:create

  • ces:metricData:list
  • ces:currentRegionSupportedMetrics:list
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subNetworkInterfaces:update
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • vpc:ports:get
  • vpc:routeTables:update
  • vpc:routeTables:get

Querying the VPN connection list

GET /v5/{project_id}/vpn-connection

vpn:vpnConnections: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

Querying a specified VPN connection

GET /v5/{project_id}/vpn-connection/{vpn_connection_id}

vpn:vpnConnections: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

Updating a VPN connection

PUT /v5/{project_id}/vpn-connection/{vpn_connection_id}

vpn:vpnConnections:update

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

Deleting a VPN connection

DELETE /v5/{project_id}/vpn-connection/{vpn_connection_id}

vpn:vpnConnections:delete

  • ces:metricData:list
  • ces:currentRegionSupportedMetrics:list
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subNetworkInterfaces:update
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • vpc:ports:get
  • vpc:routeTables:update
  • vpc:routeTables:get

Creating VPN connections in batches

POST /v5/{project_id}/vpn-connections/batch-create

vpn:vpnConnections:batchCreate

  • ces:metricData:list
  • ces:currentRegionSupportedMetrics:list
  • vpc:vpcs:list
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:subNetworkInterfaces:update
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:bandwidths:list
  • vpc:ports:get
  • vpc:routeTables:update
  • vpc:routeTables:get

Querying VPN connection logs

GET /v5/{project_id}/vpn-connection/{vpn_connection_id}/log

vpn:vpnConnections:getLog

-

Resetting a VPN connection

POST /v5/{project_id}/vpn-connection/{vpn_connection_id}/reset

vpn:vpnConnections:reset

-

Exporting VPN connection configurations

POST /v5/{project_id}/vpn-connection/{vpn_connection_id}/peer-configuration/export

vpn:vpnConnections:exportPeerConfig

-

Obtaining on-premises devices whose VPN connection configurations can be exported

GET /v5/{project_id}/peer-configuration/supported-devices

vpn:peerConfiguration:getDevices

-

Querying the CIDR block negotiation information of a VPN connection

GET /v5/{project_id}/vpn-connection/{vpn_connection_id}/ipsec-sa

vpn:vpnConnections:listIpsecSa

-