alicloud_cloud_firewall_vpc_firewalls

更新时间:

This data source provides Cloud Firewall Vpc Firewall available to the user.What is Vpc Firewall

-> NOTE: Available in 1.194.0+

Example Usage

data "alicloud_cloud_firewall_vpc_firewalls" "default" {
  ids               = ["id-example"]
  member_uid        = "1415189284827022"
  status            = "closed"
  vpc_firewall_name = "tf-test"
}

output "alicloud_cfw_vpc_firewall_example_id" {
  value = data.alicloud_cloud_firewall_vpc_firewalls.default.firewalls.0.id
}

Argument Reference

The following arguments are supported:

  • lang - (ForceNew,Optional) The language type of the requested and received messages. Value:-zh (default): Chinese.-en: English.
  • member_uid - (ForceNew,Optional) The UID of the Alibaba Cloud member account.
  • status - (ForceNew,Optional) The status of the resource
  • vpc_firewall_id - (ForceNew,Optional) The ID of the VPC firewall instance.
  • vpc_firewall_name - (ForceNew,Optional) The name of the VPC firewall instance.
  • ids - (Optional, ForceNew, Computed) A list of Vpc Firewall IDs.
  • vpc_firewall_names - (Optional, ForceNew) The name of the Vpc Firewall. You can specify at most 10 names.
  • name_regex - (Optional, ForceNew) A regex string to filter results by Group Metric Rule name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • ids - A list of Vpc Firewall IDs.
  • names - A list of name of Vpc Firewalls.
  • firewalls - A list of Vpc Firewall Entries. Each element contains the following attributes:
    • bandwidth - Bandwidth specifications for high-speed channels. Unit: Mbps.
    • connect_type - The communication type of the VPC firewall. Valid value: expressconnect, which indicates Express Connect.
    • local_vpc - The details of the local VPC.
      • local_vpc_cidr_table_list - The network segment list of the local VPC.
        • local_route_entry_list - The list of route entries of the local VPC.
          • local_destination_cidr - The target network segment of the local VPC.
          • local_next_hop_instance_id - The ID of the next-hop instance in the local VPC.
        • local_route_table_id - The ID of the route table of the local VPC.
      • region_no - The region ID of the local VPC.
      • vpc_id - The ID of the local VPC instance.
      • vpc_name - The instance name of the local VPC.
    • member_uid - The UID of the Alibaba Cloud member account.
    • peer_vpc - The details of the peer VPC.
      • peer_vpc_cidr_table_list - The network segment list of the peer VPC.
        • peer_route_entry_list - Peer VPC route entry list information.
          • peer_destination_cidr - The target network segment of the peer VPC.
          • peer_next_hop_instance_id - The ID of the next-hop instance in the peer VPC.
        • peer_route_table_id - The ID of the route table of the peer VPC.
      • region_no - The region ID of the peer VPC.
      • vpc_id - The ID of the peer VPC instance.
      • vpc_name - The instance name of the peer VPC.
    • region_status - The region is open. Value:-enable: is enabled, indicating that VPC firewall can be configured in this region.-disable: indicates that VPC firewall cannot be configured in this region.
    • status - The status of the resource
    • vpc_firewall_id - The ID of the VPC firewall instance.
    • vpc_firewall_name - The name of the VPC firewall instance.
    • id - The name of the VPC firewall instance and the value same as vpc_firewall_id.