GetGateways
The VPNs data source lists a number of VPNs resource information owned by an Alicloud account.
Example Usage
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",
}));
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
vpn_gateways = alicloud.vpn.get_gateways(business_status="Normal",
ids=[
"fake-vpn-id1",
"fake-vpn-id2",
],
name_regex="testAcc*",
output_file="/tmp/vpns",
status="active",
vpc_id="fake-vpc-id")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const vpnGateways = pulumi.output(alicloud.vpn.getGateways({
businessStatus: "Normal",
ids: [
"fake-vpn-id1",
"fake-vpn-id2",
],
nameRegex: "testAcc*",
outputFile: "/tmp/vpns",
status: "active",
vpcId: "fake-vpc-id",
}, { async: true }));Using GetGateways
function getGateways(args: GetGatewaysArgs, opts?: InvokeOptions): Promise<GetGatewaysResult>function get_gateways(business_status=None, ids=None, name_regex=None, output_file=None, status=None, vpc_id=None, opts=None)func GetGateways(ctx *Context, args *GetGatewaysArgs, opts ...InvokeOption) (*GetGatewaysResult, error)public static class GetGateways {
public static Task<GetGatewaysResult> InvokeAsync(GetGatewaysArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Business
Status string Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- Ids List<string>
IDs of the VPN.
- Name
Regex string A regex string of VPN name.
- Output
File string Save the result to the file.
- Status string
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- Vpc
Id string Use the VPC ID as the search key.
- Business
Status string Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- Ids []string
IDs of the VPN.
- Name
Regex string A regex string of VPN name.
- Output
File string Save the result to the file.
- Status string
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- Vpc
Id string Use the VPC ID as the search key.
- business
Status string Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- ids string[]
IDs of the VPN.
- name
Regex string A regex string of VPN name.
- output
File string Save the result to the file.
- status string
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- vpc
Id string Use the VPC ID as the search key.
- business_
status str Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- ids List[str]
IDs of the VPN.
- name_
regex str A regex string of VPN name.
- output_
file str Save the result to the file.
- status str
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- vpc_
id str Use the VPC ID as the search key.
GetGateways Result
The following output properties are available:
- Gateways
List<Pulumi.
Ali Cloud. Vpn. Outputs. Get Gateways Gateway> A list of VPN gateways. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
IDs of the VPN.
- Names List<string>
names of the VPN.
- Business
Status string The business status of the VPN gateway.
- Name
Regex string - Output
File string - Status string
The status of the VPN
- Vpc
Id string ID of the VPC that the VPN belongs.
- Gateways
[]Get
Gateways Gateway A list of VPN gateways. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
IDs of the VPN.
- Names []string
names of the VPN.
- Business
Status string The business status of the VPN gateway.
- Name
Regex string - Output
File string - Status string
The status of the VPN
- Vpc
Id string ID of the VPC that the VPN belongs.
- gateways
Get
Gateways Gateway[] A list of VPN gateways. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
IDs of the VPN.
- names string[]
names of the VPN.
- business
Status string The business status of the VPN gateway.
- name
Regex string - output
File string - status string
The status of the VPN
- vpc
Id string ID of the VPC that the VPN belongs.
- gateways
List[Get
Gateways Gateway] A list of VPN gateways. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
IDs of the VPN.
- names List[str]
names of the VPN.
- business_
status str The business status of the VPN gateway.
- name_
regex str - output_
file str - status str
The status of the VPN
- vpc_
id str ID of the VPC that the VPN belongs.
Supporting Types
GetGatewaysGateway
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Business
Status string Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- Create
Time string The creation time of the VPN gateway.
- Description string
The description of the VPN
- Enable
Ipsec string Whether the ipsec function is enabled.
- Enable
Ssl string Whether the ssl function is enabled.
- End
Time string The expiration time of the VPN gateway.
- Id string
ID of the VPN.
- Instance
Charge stringType The charge type of the VPN gateway.
- Internet
Ip string The internet ip of the VPN.
- Name string
The name of the VPN.
- Specification string
The Specification of the VPN
- Ssl
Connections int Total count of ssl vpn connections.
- Status string
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- Vpc
Id string Use the VPC ID as the search key.
- Business
Status string Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- Create
Time string The creation time of the VPN gateway.
- Description string
The description of the VPN
- Enable
Ipsec string Whether the ipsec function is enabled.
- Enable
Ssl string Whether the ssl function is enabled.
- End
Time string The expiration time of the VPN gateway.
- Id string
ID of the VPN.
- Instance
Charge stringType The charge type of the VPN gateway.
- Internet
Ip string The internet ip of the VPN.
- Name string
The name of the VPN.
- Specification string
The Specification of the VPN
- Ssl
Connections int Total count of ssl vpn connections.
- Status string
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- Vpc
Id string Use the VPC ID as the search key.
- business
Status string Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- create
Time string The creation time of the VPN gateway.
- description string
The description of the VPN
- enable
Ipsec string Whether the ipsec function is enabled.
- enable
Ssl string Whether the ssl function is enabled.
- end
Time string The expiration time of the VPN gateway.
- id string
ID of the VPN.
- instance
Charge stringType The charge type of the VPN gateway.
- internet
Ip string The internet ip of the VPN.
- name string
The name of the VPN.
- specification string
The Specification of the VPN
- ssl
Connections number Total count of ssl vpn connections.
- status string
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- vpc
Id string Use the VPC ID as the search key.
- business_
status str Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.
- create_
time str The creation time of the VPN gateway.
- description str
The description of the VPN
- enable_
ipsec str Whether the ipsec function is enabled.
- enable_
ssl str Whether the ssl function is enabled.
- end_
time str The expiration time of the VPN gateway.
- id str
ID of the VPN.
- instance_
charge_ strtype The charge type of the VPN gateway.
- internet_
ip str The internet ip of the VPN.
- name str
The name of the VPN.
- specification str
The Specification of the VPN
- ssl_
connections float Total count of ssl vpn connections.
- status str
Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.
- vpc_
id str Use the VPC ID as the search key.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.