- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Returns the status for the specified VPN gateway.
HTTP request
GET https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID for this request. |
region |
Name of the region for this request. |
vpn |
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": integer, "peerGatewayInterface": integer, "tunnelUrl": string } ], "state": { "state": enum, "unsatisfiedReason": enum } } ] } } |
Fields | |
---|---|
result |
|
result. |
vpnGateways.list of VPN connection for this VpnGateway. |
result. |
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. |
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. |
vpnGateways.list of VPN tunnels that are in this VPN connection. |
result. |
The VPN gateway interface this VPN tunnel is associated with. |
result. |
The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway. |
result. |
URL reference to the VPN tunnel. |
result. |
HighAvailabilityRequirementState for the VPN connection. |
result. |
Indicates the high availability requirement state for the VPN connection. Valid values are |
result. |
Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/compute.readonly
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 IAM permissions:
compute.vpnGateways.get
To find predefined roles that contain those permissions, see Compute Engine IAM Roles.