alicloud_dfs_access_groups
更新时间:
This data source provides the Apsara File Storage for HDFS Access Groups of the current Alibaba Cloud user.
-> NOTE: Available in v1.133.0+.
Example Usage
Basic Usage
data "alicloud_dfs_access_groups" "ids" {
ids = ["example_id"]
}
output "dfs_access_group_id_1" {
value = data.alicloud_dfs_access_groups.ids.groups.0.id
}
data "alicloud_dfs_access_groups" "nameRegex" {
name_regex = "^my-AccessGroup"
}
output "dfs_access_group_id_2" {
value = data.alicloud_dfs_access_groups.nameRegex.groups.0.id
}
Argument Reference
The following arguments are supported:
ids- (Optional, ForceNew, Computed) A list of Access Group IDs.name_regex- (Optional, ForceNew) A regex string to filter results by Access Group name.output_file- (Optional) File name where to save data source results (after runningterraform plan).
Argument Reference
The following attributes are exported in addition to the arguments listed above:
names- A list of Access Group names.groups- A list of Dfs Access Groups. Each element contains the following attributes:access_group_id- The length ofdescriptiondoes not exceed 100 bytes.access_group_name- The Name of Access Group. The length Ofaccess_group_namedoes not exceed 100 bytes.create_time- The CreateTime of Access Group.description- The Description of Access Group. The length Ofdescriptiondoes not exceed 100 bytes.id- The ID of the Access Group.mount_point_count- The Number of attached mountpoint.network_type- The NetworkType of Access Group. Valid values:VPC.rule_count- The Number of access rule.
该文章对您有帮助吗?