Show / Hide Table of Contents

Class GetVPNGateway

Inheritance
System.Object
GetVPNGateway
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetVPNGateway

Methods

View Source

InvokeAsync(GetVPNGatewayArgs, InvokeOptions)

Get a VPN gateway within GCE from its name.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var my_vpn_gateway = Output.Create(Gcp.Compute.GetVPNGateway.InvokeAsync(new Gcp.Compute.GetVPNGatewayArgs
    {
        Name = "vpn-gateway-us-east1",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetVPNGatewayResult> InvokeAsync(GetVPNGatewayArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetVPNGatewayArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetVPNGatewayResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.