Reference documentation and code samples for the Google Cloud Compute V1 API module Google::Cloud::Compute::V1::VpnTunnel::Status.
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
Constants
UNDEFINED_STATUS
value: 0 A value indicating that the enum field is not set.
ALLOCATING_RESOURCES
value: 320_922_816 Cloud VPN is in the process of allocating all required resources (specifically, a borg task).
AUTHORIZATION_ERROR
value: 23_580_290 Auth error (e.g. bad shared secret).
DEPROVISIONING
value: 428_935_662 Resources is being deallocated for the VPN tunnel.
ESTABLISHED
value: 88_852_344 Secure session is successfully established with peer VPN.
FAILED
value: 455_706_685 Tunnel creation has failed and the tunnel is not ready to be used.
FIRST_HANDSHAKE
value: 191_393_000 Successful first handshake with peer VPN.
NEGOTIATION_FAILURE
value: 360_325_868 Handshake failed.
NETWORK_ERROR
value: 193_912_951 Deprecated, replaced by NO_INCOMING_PACKETS
NO_INCOMING_PACKETS
value: 119_983_216 No incoming packets from peer
PROVISIONING
value: 290_896_621 Resource is being allocated for the VPN tunnel.
REJECTED
value: 174_130_302 Tunnel configuration was rejected, can be result of being denylisted.
STOPPED
value: 444_276_141 Tunnel is stopped due to its Forwarding Rules being deleted.
WAITING_FOR_FULL_CONFIG
value: 41_640_522 Waiting to receive all VPN-related configs from user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule and Route resources are needed to setup VPN tunnel.
[[["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-29 UTC."],[],[],null,["# Google Cloud Compute V1 API - Module Google::Cloud::Compute::V1::VpnTunnel::Status (v3.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0 (latest)](/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.22.0](/ruby/docs/reference/google-cloud-compute-v1/2.22.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.21.1](/ruby/docs/reference/google-cloud-compute-v1/2.21.1/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.20.0](/ruby/docs/reference/google-cloud-compute-v1/2.20.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.19.1](/ruby/docs/reference/google-cloud-compute-v1/2.19.1/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.18.0](/ruby/docs/reference/google-cloud-compute-v1/2.18.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.17.0](/ruby/docs/reference/google-cloud-compute-v1/2.17.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.16.0](/ruby/docs/reference/google-cloud-compute-v1/2.16.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.15.0](/ruby/docs/reference/google-cloud-compute-v1/2.15.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.14.0](/ruby/docs/reference/google-cloud-compute-v1/2.14.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.13.0](/ruby/docs/reference/google-cloud-compute-v1/2.13.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.12.0](/ruby/docs/reference/google-cloud-compute-v1/2.12.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.11.0](/ruby/docs/reference/google-cloud-compute-v1/2.11.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.10.0](/ruby/docs/reference/google-cloud-compute-v1/2.10.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.9.0](/ruby/docs/reference/google-cloud-compute-v1/2.9.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.8.0](/ruby/docs/reference/google-cloud-compute-v1/2.8.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.7.2](/ruby/docs/reference/google-cloud-compute-v1/2.7.2/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.6.0](/ruby/docs/reference/google-cloud-compute-v1/2.6.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.5.0](/ruby/docs/reference/google-cloud-compute-v1/2.5.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.4.0](/ruby/docs/reference/google-cloud-compute-v1/2.4.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.3.0](/ruby/docs/reference/google-cloud-compute-v1/2.3.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.2.0](/ruby/docs/reference/google-cloud-compute-v1/2.2.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.1.0](/ruby/docs/reference/google-cloud-compute-v1/2.1.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [2.0.0](/ruby/docs/reference/google-cloud-compute-v1/2.0.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.10.0](/ruby/docs/reference/google-cloud-compute-v1/1.10.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.9.0](/ruby/docs/reference/google-cloud-compute-v1/1.9.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.8.0](/ruby/docs/reference/google-cloud-compute-v1/1.8.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.7.1](/ruby/docs/reference/google-cloud-compute-v1/1.7.1/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.6.0](/ruby/docs/reference/google-cloud-compute-v1/1.6.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.5.0](/ruby/docs/reference/google-cloud-compute-v1/1.5.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.4.0](/ruby/docs/reference/google-cloud-compute-v1/1.4.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.3.0](/ruby/docs/reference/google-cloud-compute-v1/1.3.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.2.0](/ruby/docs/reference/google-cloud-compute-v1/1.2.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.1.0](/ruby/docs/reference/google-cloud-compute-v1/1.1.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [1.0.0](/ruby/docs/reference/google-cloud-compute-v1/1.0.0/Google-Cloud-Compute-V1-VpnTunnel-Status)\n- [0.5.0](/ruby/docs/reference/google-cloud-compute-v1/0.5.0/Google-Cloud-Compute-V1-VpnTunnel-Status) \nReference documentation and code samples for the Google Cloud Compute V1 API module Google::Cloud::Compute::V1::VpnTunnel::Status.\n\n\\[Output Only\\] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.\n\nConstants\n---------\n\n### UNDEFINED_STATUS\n\n**value:** 0 \nA value indicating that the enum field is not set.\n\n### ALLOCATING_RESOURCES\n\n**value:** 320_922_816 \nCloud VPN is in the process of allocating all required resources (specifically, a borg task).\n\n### AUTHORIZATION_ERROR\n\n**value:** 23_580_290 \nAuth error (e.g. bad shared secret).\n\n### DEPROVISIONING\n\n**value:** 428_935_662 \nResources is being deallocated for the VPN tunnel.\n\n### ESTABLISHED\n\n**value:** 88_852_344 \nSecure session is successfully established with peer VPN.\n\n### FAILED\n\n**value:** 455_706_685 \nTunnel creation has failed and the tunnel is not ready to be used.\n\n### FIRST_HANDSHAKE\n\n**value:** 191_393_000 \nSuccessful first handshake with peer VPN.\n\n### NEGOTIATION_FAILURE\n\n**value:** 360_325_868 \nHandshake failed.\n\n### NETWORK_ERROR\n\n**value:** 193_912_951 \nDeprecated, replaced by NO_INCOMING_PACKETS\n\n### NO_INCOMING_PACKETS\n\n**value:** 119_983_216 \nNo incoming packets from peer\n\n### PROVISIONING\n\n**value:** 290_896_621 \nResource is being allocated for the VPN tunnel.\n\n### REJECTED\n\n**value:** 174_130_302 \nTunnel configuration was rejected, can be result of being denylisted.\n\n### STOPPED\n\n**value:** 444_276_141 \nTunnel is stopped due to its Forwarding Rules being deleted.\n\n### WAITING_FOR_FULL_CONFIG\n\n**value:** 41_640_522 \nWaiting to receive all VPN-related configs from user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule and Route resources are needed to setup VPN tunnel."]]