Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.compute.getVPNGateway
Explore with Pulumi AI
Get a VPN gateway within GCE from its name.
Example Usage
data "google_compute_vpn_gateway" "my-vpn-gateway" {
name = "vpn-gateway-us-east1"
}
Using getVPNGateway
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVPNGateway(args: GetVPNGatewayArgs, opts?: InvokeOptions): Promise<GetVPNGatewayResult>
function getVPNGatewayOutput(args: GetVPNGatewayOutputArgs, opts?: InvokeOptions): Output<GetVPNGatewayResult>
def get_vpn_gateway(name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVPNGatewayResult
def get_vpn_gateway_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVPNGatewayResult]
func LookupVPNGateway(ctx *Context, args *LookupVPNGatewayArgs, opts ...InvokeOption) (*LookupVPNGatewayResult, error)
func LookupVPNGatewayOutput(ctx *Context, args *LookupVPNGatewayOutputArgs, opts ...InvokeOption) LookupVPNGatewayResultOutput
> Note: This function is named LookupVPNGateway
in the Go SDK.
public static class GetVPNGateway
{
public static Task<GetVPNGatewayResult> InvokeAsync(GetVPNGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetVPNGatewayResult> Invoke(GetVPNGatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVPNGatewayResult> getVPNGateway(GetVPNGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getVPNGateway:getVPNGateway
arguments:
# arguments dictionary
The following arguments are supported:
getVPNGateway Result
The following output properties are available:
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.