Help Center/ Virtual Private Network/ CLI Reference/ CLI Command Reference (S2C VPN)
Updated on 2026-09-14 GMT+08:00

CLI Command Reference (S2C VPN)

S2C VPN Gateway

API Name

Command

Description

Operation

CreateVgw

hcloud VPN CreateVgw

Creates a VPN gateway.

Debug

DeleteVgw

hcloud VPN DeleteVgw

Deletes a specified VPN gateway.

Debug

DeleteVpnGatewayJob

hcloud VPN DeleteVpnGatewayJob

Deletes records of a specified task.

Debug

ListAvailabilityZones (V5)

hcloud VPN ListAvailabilityZones

Queries the AZs of VPN gateways.

Debug

ListExtendedAvailabilityZones (V5.1)

hcloud VPN ListExtendedAvailabilityZones

Queries the AZs of VPN gateways.

Debug

ListVgws

hcloud VPN ListVgws

Queries the VPN gateway list.

Debug

ListVpnGatewayJobs

hcloud VPN ListVpnGatewayJobs

Queries the resource task list.

Debug

ShowVgw

hcloud VPN ShowVgw

Queries a specified VPN gateway.

Debug

ShowVpnGatewayRoutingTable

hcloud VPN ShowVpnGatewayRoutingTable

Queries the route table of a specified VPN gateway.

Debug

UpdatePostpaidVgwSpecification

hcloud VPN UpdatePostpaidVgwSpecification

Changes the specification of a VPN gateway.

Debug

UpdateVgw

hcloud VPN UpdateVgw

Updates a specified VPN gateway.

Debug

UpgradeVpnGateway

hcloud VPN UpgradeVpnGateway

Upgrades a VPN gateway.

Debug

Customer Gateway

API Name

Command

Description

Operation

CreateCgw

hcloud VPN CreateCgw

Creates a customer gateway for a tenant to connect to a VPN gateway.

Debug

DeleteCgw

hcloud VPN DeleteCgw

Deletes a specified customer gateway.

Debug

ListCgws

hcloud VPN ListCgws

Queries the customer gateway list.

Debug

ShowCgw

hcloud VPN ShowCgw

Queries a specified customer gateway.

Debug

UpdateCgw

hcloud VPN UpdateCgw

Updates a specified customer gateway.

Debug

VPN Connection

API Name

Command

Description

Operation

BatchCreateVpnConnection

hcloud VPN BatchCreateVpnConnection

Creates VPN connections in batches.

Debug

CreateVpnConnection

hcloud VPN CreateVpnConnection

Creates a VPN connection.

Debug

DeleteVpnConnection

hcloud VPN DeleteVpnConnection

Deletes a specified VPN connection.

Debug

ExportVpnConnectionPeerConfiguration

hcloud VPN ExportVpnConnectionPeerConfiguration

Exports the VPN connection configuration of the customer gateway device.

Debug

ListConnectionIpsecSa

hcloud VPN ListConnectionIpsecSa

Queries the CIDR block negotiation information of a specified VPN connection.

Debug

ListPeerConfigurationSupportedDevices

hcloud VPN ListPeerConfigurationSupportedDevices

Obtains customer gateway devices whose VPN connection configurations can be exported.

Debug

ListVpnConnections

hcloud VPN ListVpnConnections

Queries the VPN connection list.

Debug

ResetVpnConnection

hcloud VPN ResetVpnConnection

Resets a specified VPN connection.

Debug

ShowVpnConnection

hcloud VPN ShowVpnConnection

Queries the parameters of a specified VPN connection.

Debug

ShowVpnConnectionLog

hcloud VPN ShowVpnConnectionLog

Queries logs of a specified VPN connection.

Debug

UpdateVpnConnection

hcloud VPN UpdateVpnConnection

Updates the parameters of a specified VPN connection.

Debug

VPN Connection Monitor

API Name

Command

Description

Operation

CreateConnectionMonitor

hcloud VPN CreateConnectionMonitor

Creates a VPN connection monitor.

Debug

DeleteConnectionMonitor

hcloud VPN DeleteConnectionMonitor

Deletes a specified VPN connection monitor.

Debug

ListConnectionMonitors

hcloud VPN ListConnectionMonitors

Queries the VPN connection monitor list.

Debug

ShowConnectionMonitor

hcloud VPN ShowConnectionMonitor

Queries a specified VPN connection monitor.

Debug