Provides a NAS Access Rule resource.
For information about NAS Access Rule and how to use it, see What is Access Rule.
Basic Usage
resource "alicloud_nas_access_group" "foo" {
access_group_name = "tf-NasConfigName"
access_group_type = "Vpc"
description = "tf-testAccNasConfig"
}
resource "alicloud_nas_access_rule" "foo" {
access_group_name = alicloud_nas_access_group.foo.access_group_name
source_cidr_ip = "168.1.1.0/16"
rw_access_type = "RDWR"
user_access_type = "no_squash"
priority = 2
}
The following arguments are supported:
access_group_name
- (Required, ForceNew) AccessGroupName.file_system_type
- (Optional, ForceNew) filesystem type. include standard, extreme.ipv6_source_cidr_ip
- (Optional, Available since v1.218.0) Ipv6SourceCidrIp.priority
- (Optional, Computed) Priority.rw_access_type
- (Optional, Computed) RWAccess.source_cidr_ip
- (Optional) SourceCidrIp.user_access_type
- (Optional, Computed) UserAccess.The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as <access_group_name>:<file_system_type>:<access_rule_id>
.access_rule_id
- The first ID of the resource.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Access Rule.delete
- (Defaults to 5 mins) Used when delete the Access Rule.update
- (Defaults to 5 mins) Used when update the Access Rule.NAS Access Rule can be imported using the id, e.g.
$ terraform import alicloud_nas_access_rule.example <access_group_name>:<file_system_type>:<access_rule_id>