Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Tipos de recursos da API
A API Cloud VPN e os comandos gcloud fazem parte do Compute Engine.
As seções a seguir abrangem os recursos da API para VPN de alta disponibilidade e VPN clássica.
Recursos de VPN de alta disponibilidade
vpnGateways: um recurso de gateway de VPN de alta disponibilidade
A API Compute Engine e os comandos gcloud a seguir são compatíveis com funções de rede comuns do Compute Engine e podem ser úteis ao configurar o Cloud VPN:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-12 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)"]]