alicloud_ram_groups
The Ram Groups data source provides a list of Alicloud Ram Groups in an Alicloud account according to the specified filters.
Example Usage
data "alicloud_ram_groups" "group" { output_file = "groups.txt" user_name = "user1" name_regex = "^group[0-9]*" }
Argument Reference
The following arguments are supported:
-
name_regex
- (Optional) A regex string to apply to the group list returned by Alicloud. -
user_name
- (Optional) Limit search to specific the user name. Found the groups for the specified user. -
policy_type
- (Optional) Limit search to specific the policy type. Valid items areCustom
andSystem
. If you set this parameter, you must setpolicy_name
at one time. -
policy_name
- (Optional) Limit search to specific the policy name. If you set this parameter without setpolicy_type
, we will specified it asSystem
. Found the groups which attached with the specified policy. -
output_file
- (Optional) The name of file that can save groups data source after runningterraform plan
.
Attributes Reference
A list of groups will be exported and its every element contains the following attributes:
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/d/ram_groups.html