alicloud_nas_access_rule

Provides a NAS Access Rule resource.

For information about NAS Access Rule and how to use it, see What is Access Rule.

Example Usage

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
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

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>