GetCustomerGateways

The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(AliCloud.Vpn.GetCustomerGateways.InvokeAsync(new AliCloud.Vpn.GetCustomerGatewaysArgs
        {
            Ids = 
            {
                "fake-id1",
                "fake-id2",
            },
            NameRegex = "testAcc*",
            OutputFile = "/tmp/cgws",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.vpn.get_customer_gateways(ids=[
        "fake-id1",
        "fake-id2",
    ],
    name_regex="testAcc*",
    output_file="/tmp/cgws")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = pulumi.output(alicloud.vpn.getCustomerGateways({
    ids: [
        "fake-id1",
        "fake-id2",
    ],
    nameRegex: "testAcc*",
    outputFile: "/tmp/cgws",
}, { async: true }));

Using GetCustomerGateways

function getCustomerGateways(args: GetCustomerGatewaysArgs, opts?: InvokeOptions): Promise<GetCustomerGatewaysResult>
function  get_customer_gateways(ids=None, name_regex=None, output_file=None, opts=None)
func GetCustomerGateways(ctx *Context, args *GetCustomerGatewaysArgs, opts ...InvokeOption) (*GetCustomerGatewaysResult, error)
public static class GetCustomerGateways {
    public static Task<GetCustomerGatewaysResult> InvokeAsync(GetCustomerGatewaysArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

ID of the VPN customer gateways.

NameRegex string

A regex string of VPN customer gateways name.

OutputFile string

Save the result to the file.

Ids []string

ID of the VPN customer gateways.

NameRegex string

A regex string of VPN customer gateways name.

OutputFile string

Save the result to the file.

ids string[]

ID of the VPN customer gateways.

nameRegex string

A regex string of VPN customer gateways name.

outputFile string

Save the result to the file.

ids List[str]

ID of the VPN customer gateways.

name_regex str

A regex string of VPN customer gateways name.

output_file str

Save the result to the file.

GetCustomerGateways Result

The following output properties are available:

Gateways List<Pulumi.AliCloud.Vpn.Outputs.GetCustomerGatewaysGateway>

A list of VPN customer gateways. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
NameRegex string
OutputFile string
Gateways []GetCustomerGatewaysGateway

A list of VPN customer gateways. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
NameRegex string
OutputFile string
gateways GetCustomerGatewaysGateway[]

A list of VPN customer gateways. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
nameRegex string
outputFile string
gateways List[GetCustomerGatewaysGateway]

A list of VPN customer gateways. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]
names List[str]
name_regex str
output_file str

Supporting Types

GetCustomerGatewaysGateway

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

CreateTime string

The creation time of the VPN customer gateway.

Description string

The description of the VPN customer gateway.

Id string

ID of the VPN customer gateway .

IpAddress string

The ip address of the VPN customer gateway.

Name string

The name of the VPN customer gateway.

CreateTime string

The creation time of the VPN customer gateway.

Description string

The description of the VPN customer gateway.

Id string

ID of the VPN customer gateway .

IpAddress string

The ip address of the VPN customer gateway.

Name string

The name of the VPN customer gateway.

createTime string

The creation time of the VPN customer gateway.

description string

The description of the VPN customer gateway.

id string

ID of the VPN customer gateway .

ipAddress string

The ip address of the VPN customer gateway.

name string

The name of the VPN customer gateway.

create_time str

The creation time of the VPN customer gateway.

description str

The description of the VPN customer gateway.

id str

ID of the VPN customer gateway .

ip_address str

The ip address of the VPN customer gateway.

name str

The name of the VPN customer gateway.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.