The following Compute Engine API reference and gcloud commands support common
Compute Engine networking functions and can be useful when configuring
Cloud VPN:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# APIs and reference\n\nAPI resource types\n------------------\n\nThe Cloud VPN API and `gcloud` commands are part of Compute Engine.\nThe following sections cover API resources for HA VPN and\nClassic VPN.\n\n### HA VPN resources\n\n- [`vpnGateways`](/compute/docs/reference/rest/v1/vpnGateways): a HA VPN gateway resource\n- [`vpnTunnels`](/compute/docs/reference/rest/v1/vpnTunnels): a VPN tunnel resource\n- [`externalVpnGateways`](/compute/docs/reference/rest/v1/externalVpnGateways): in Google Cloud, your [peer VPN gateway](/vpn/docs/concepts/key-terms#peer-definition) device or service\n\n### Classic VPN resources\n\n- [`forwardingRules`](/compute/docs/reference/rest/v1/forwardingRules): three forwarding rules that direct UDP and ESP traffic to the target VPN gateway\n- [`targetVpnGateways`](/compute/docs/reference/rest/v1/targetVpnGateways): a Classic VPN gateway resource\n- [`vpnTunnels`](/compute/docs/reference/rest/v1/vpnTunnels): a VPN tunnel resource\n\n`gcloud` commands\n-----------------\n\nFor more information about the `gcloud` commands for these resources, see the\nfollowing Google Cloud CLI documentation.\n\n### HA VPN commands\n\n- [`gcloud compute vpn-gateways`](/sdk/gcloud/reference/compute/vpn-gateways)\n- [`gcloud compute external-vpn-gateways`](/sdk/gcloud/reference/compute/external-vpn-gateways)\n- [`gcloud compute vpn-tunnels`](/sdk/gcloud/reference/compute/vpn-tunnels)\n\n### Classic VPN commands\n\n- [`gcloud compute forwarding-rules`](/sdk/gcloud/reference/compute/forwarding-rules)\n- [`gcloud compute target-vpn-gateways`](/sdk/gcloud/reference/compute/target-vpn-gateways)\n- [`gcloud compute vpn-tunnels`](/sdk/gcloud/reference/compute/vpn-tunnels)\n\nRelated APIs and `gcloud` commands\n----------------------------------\n\nThe following Compute Engine API reference and `gcloud` commands support common\nCompute Engine networking functions and can be useful when configuring\nCloud VPN:\n\n- Google Cloud projects \n [API](/resource-manager/reference/rest/v1/projects) \\| [`gcloud` command](/sdk/gcloud/reference/projects)\n- Virtual machine (VM) instances \n [API](/compute/docs/reference/rest/v1/instances) \\| [`gcloud` command](/sdk/gcloud/reference/compute/instances)\n- Virtual Private Cloud (VPC) networks and subnets \n [API](/compute/docs/reference/rest/v1/networks) \\| [`gcloud` command](/sdk/gcloud/reference/compute/networks)\n- Firewall rules \n [API](/compute/docs/reference/rest/v1/firewalls) \\| [`gcloud` command](/sdk/gcloud/reference/compute/firewall-rules)\n- Forwarding rules \n [API](/compute/docs/reference/rest/v1/forwardingRules) \\| [`gcloud` command](/sdk/gcloud/reference/compute/forwarding-rules)\n- Routes \n [API](/compute/docs/reference/rest/v1/routes) \\| [`gcloud` command](/sdk/gcloud/reference/compute/routes)"]]