Method: vpnGateways.getStatus

Returns the status for the specified VPN gateway.

HTTP request

GET https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resourceId}/getStatus

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

region

string

Name of the region for this request.

resourceId

string

Name of the VPN gateway to return.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "result": {
    "vpnConnections": [
      {
        "peerExternalGateway": string,
        "peerGcpGateway": string,
        "tunnels": [
          {
            "localGatewayInterface": number,
            "peerGatewayInterface": number,
            "tunnelUrl": string
          }
        ],
        "state": {
          "state": enum,
          "unsatisfiedReason": enum
        }
      }
    ]
  }
}
Fields
result

object

result.vpnConnections[]

object

globalOperations.list of VPN connection for this VpnGateway.

result.vpnConnections[].peerExternalGateway

string

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peerGcpGateway.

result.vpnConnections[].peerGcpGateway

string

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peerGcpGateway.

result.vpnConnections[].tunnels[]

object

globalOperations.list of VPN tunnels that are in this VPN connection.

result.vpnConnections[].tunnels[].localGatewayInterface

number (uint32 format)

The VPN gateway interface this VPN tunnel is associated with.

result.vpnConnections[].tunnels[].peerGatewayInterface

number (uint32 format)

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway.

result.vpnConnections[].tunnels[].tunnelUrl

string

URL reference to the VPN tunnel.

result.vpnConnections[].state

object

HighAvailabilityRequirementState for the VPN connection.

result.vpnConnections[].state.state

enum

Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET.

result.vpnConnections[].state.unsatisfiedReason

enum

Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/compute
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

In addition to any permissions specified on the fields above, authorization requires one or more of the following Google IAM permissions:

  • compute.vpnGateways.get
Was deze pagina nuttig? Laat ons weten hoe goed we u hebben geholpen:

Feedback verzenden over...

Compute Engine Documentation