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.
- Name
Regex string A regex string of VPN customer gateways name.
- Output
File 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.
Ali Cloud. Vpn. Outputs. Get Customer Gateways Gateway> 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>
- Name
Regex string - Output
File string
- gateways
List[Get
Customer Gateways Gateway] 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.
- Create
Time 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 .
- Ip
Address string The ip address of the VPN customer gateway.
- Name string
The name of the VPN customer gateway.
- Create
Time 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 .
- Ip
Address string The ip address of the VPN customer gateway.
- Name string
The name of the VPN customer gateway.
- create
Time 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 .
- ip
Address 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
alicloudTerraform Provider.