alicloud_ga_acl
更新时间:
Provides a Global Accelerator (GA) Acl resource.
For information about Global Accelerator (GA) Acl and how to use it, see What is Acl.
-> NOTE: Available since v1.150.0.
Example Usage
Basic Usage
resource "alicloud_ga_acl" "default" {
acl_name = "terraform-example"
address_ip_version = "IPv4"
}
resource "alicloud_ga_acl_entry_attachment" "default" {
acl_id = alicloud_ga_acl.default.id
entry = "192.168.1.1/32"
entry_description = "terraform-example"
}
Argument Reference
The following arguments are supported:
address_ip_version
- (Required, ForceNew) The IP version. Valid values:IPv4
andIPv6
.acl_name
- (Optional) The name of the ACL. The name must be2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.resource_group_id
- (Optional, Available since v1.226.0) The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.tags
- (Optional, Available since v1.207.1) A mapping of tags to assign to the resource.acl_entries
- (Optional, Set, Deprecated since v1.190.0) The entries of the Acl. Seeacl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud_ga_acl_entry_attachment
."dry_run
- (Optional, Bool) The dry run.
acl_entries
The acl_entries supports the following:
entry
- (Optional) The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.entry_description
- (Optional) The description of the IP entry. The description must be1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Acl. Its value is same asacl_id
.status
- The status of the resource.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Acl.update
- (Defaults to 5 mins) Used when update the Acl.delete
- (Defaults to 5 mins) Used when delete the Acl.
Import
Global Accelerator (GA) Acl can be imported using the id, e.g.
$ terraform import alicloud_ga_acl.example <id>
文档内容是否对您有帮助?