This data source provides Adb Resource Group available to the user.What is Resource Group
data "alicloud_adb_resource_groups" "default" {
db_cluster_id = "am-bp1a16357gty69185"
group_name = "TESTOPENAPI"
}
output "alicloud_adb_resource_group_example_id" {
value = data.alicloud_adb_resource_groups.default.groups.0.id
}
The following arguments are supported:
db_cluster_id
- (Required, ForceNew) DBClusterIdgroup_name
- (Optional, ForceNew) The name of the resource pool, which cannot exceed 64 bytes in length.output_file
- (Optional) File name where to save data source results (after running terraform plan
).ids
- (Optional, ForceNew, Computed) A list of AnalyticDB for MySQL (ADB) Resource Group IDs.The following attributes are exported in addition to the arguments listed above:
groups
- A list of Resource Group Entries. Each element contains the following attributes:
id
- The key
of the resource supplied above.The value is formulated as <db_cluster_id>:<group_name>
.create_time
- Creation time.db_cluster_id
- DB cluster id.group_name
- The name of the resource pool.group_type
- Query type, value description:
node_num
- The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.user
- Binding User.