文档

alicloud_cloud_firewall_control_policies

更新时间:
一键部署

This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user.

-> NOTE: Available since v1.129.0.

Example Usage

Basic Usage

data "alicloud_cloud_firewall_control_policies" "example" {
  direction = "in"
}

Argument Reference

The following arguments are supported:

  • direction - (Required, ForceNew) The direction of the traffic to which the access control policy applies. Valid values: in, out.
  • acl_uuid - (Optional, ForceNew) The unique ID of the access control policy.
  • acl_action - (Optional, ForceNew) The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
  • destination - (Optional, ForceNew) The destination address defined in the access control policy.
  • ip_version - (Optional, ForceNew) The IP version of the address in the access control policy.
  • proto - (Optional, ForceNew) The type of the protocol in the access control policy. Valid values: If direction is in, the valid value is ANY. If direction is out, the valid values are ANY, TCP, UDP, ICMP.
  • source - (Optional, ForceNew) The source address in the access control policy.
  • description - (Optional, ForceNew) The description of the access control policy.
  • lang - (Optional, ForceNew) The language of the content within the response. Valid values: en, zh.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).
  • source_ip - (Removed since v1.213.0) The source IP address of the request. NOTE: Field upgrade_type has been removed from provider version 1.213.0.

Attributes Reference

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

  • ids - A list of Control Policy IDs.
  • policies - A list of Cloud Firewall Control Policies. Each element contains the following attributes:
    • id - The ID of the Control Policy. It formats as <acl_uuid>:<direction>.
    • acl_uuid - The unique ID of the access control policy.
    • direction - The direction of the traffic to which the access control policy applies.
    • acl_action - The action that Cloud Firewall performs on the traffic.
    • application_id - The application ID in the access control policy.
    • application_name - The type of the application that the access control policy supports.
    • description - The description of the access control policy.
    • dest_port - The destination port in the access control policy.
    • dest_port_group - The name of the destination port address book in the access control policy.
    • dest_port_group_ports - The ports in the destination port address book.
    • dest_port_type - The type of the destination port in the access control policy.
    • destination - The destination address in the access control policy.
    • destination_group_cidrs - The CIDR blocks in the destination address book.
    • destination_group_type - The type of the destination address book in the access control policy.
    • destination_type - The type of the destination address in the access control policy.
    • dns_result - The DNS resolution result.
    • dns_result_time - The timestamp of the DNS resolution result.
    • hit_times - The number of hits for the access control policy.
    • order - The priority of the access control policy.
    • proto - The type of the protocol in the access control policy.
    • release - Indicates whether the access control policy is enabled.
    • source - The source address in the access control policy.
    • source_group_cidrs - The CIDR blocks in the source address book.
    • source_group_type - The type of the source address book in the access control policy.
    • source_type - The type of the source address in the access control policy.

  • 本页导读 (0)
文档反馈