» alicloud_nas_access_groups

This data source provides user-available access groups. Use when you can create mount points

» Example Usage

data "alicloud_nas_access_groups" "ag" {
  name_regex = "^foo"
  type = "Classic"
  description = "tf-testAccAccessGroupsdatasource"
}

output "first_nas_access_groups_id" {
  value = "${data.alicloud_nas_access_groups.nas_access_groups_ds.access_groups.0.id}"
}

» Argument Reference

The following arguments are supported:

  • name_regex - (Required) A regex string to filter AccessGroups by name.
  • type - (Optional) Filter results by a specific AccessGroupType.
  • description - (Optional) Filter results by a specific Description.
  • 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 AccessGroup IDs.
  • groups - A list of AccessGroups. Each element contains the following attributes:
    • id - AccessGroupName of the AccessGroup.
    • rule_count - RuleCount of the AccessGroup.
    • type - AccessGroupType of the AccessGroup.
    • mount_target_count - MountTargetCount block of the AccessGroup
    • description - Destription of the AccessGroup.