Show / Hide Table of Contents

Class GetGateways

Inheritance
System.Object
GetGateways
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.AliCloud.Vpn
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetGateways

Methods

View Source

InvokeAsync(GetGatewaysArgs, InvokeOptions)

The VPNs data source lists a number of VPNs resource information owned by an Alicloud account.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var vpnGateways = Output.Create(AliCloud.Vpn.GetGateways.InvokeAsync(new AliCloud.Vpn.GetGatewaysArgs
    {
        BusinessStatus = "Normal",
        Ids = 
        {
            "fake-vpn-id1",
            "fake-vpn-id2",
        },
        NameRegex = "testAcc*",
        OutputFile = "/tmp/vpns",
        Status = "active",
        VpcId = "fake-vpc-id",
    }));
}

}

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

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