» alicloud_nas_access_rules

This data source provides AccessRule available to the user.

» Example Usage

data "alicloud_nas_access_rules" "foo" {
  access_group_name = "tf-testAccAccessGroupsdatasource"
  source_cidr_ip = "168.1.1.0/16"
  rw_access = "RDWR"
  user_access = "no_squash"
}

output "alicloud_nas_access_rules_id" {
  value = "${data.alicloud_nas_access_rules.foo.rules.0.id}"
}

» Argument Reference

The following arguments are supported:

  • access_group_name - (Required ForceNew) Filter results by a specific AccessGroupName.
  • source_cidr_ip - (Optional) Filter results by a specific SourceCidrIp.
  • user_access - (Optional) Filter results by a specific UserAccess.
  • rw_access - (Optional) Filter results by a specific RWAccess.
  • 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 rule id. Each item formats as <access_group_name>:<access rule id>.
  • rules - A list of AccessRules. Each element contains the following attributes: