» alicloud_vpn_gateways

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

» Example Usage

data "alicloud_vpn_gateways" "vpn_gateways" {
    vpc_id = "fake-vpc-id"
    vpn_gateway_id = "fake-vpn-id"
    status = "active"
    business_status = "Normal"
    name_regex = "testAcc*"
    output_file = "/tmp/vpns"
}

» Argument Reference

The following arguments are supported:

  • vpc_id - (Optional) Use the VPC ID as the search key.
  • ids - (Optional) IDs of the VPN.
  • status - (Optional) Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
  • business_status - (Optional) Limit search to specific business status - valid value is "Normal", "FinancialLocked".
  • name_regex - (Optional) A regex string of VPN name.
  • output_file - (Optional) Save the result to the file.

» Attributes Reference

The following attributes are exported: