Queries the information about a resource group for an AnalyticDB for MySQL cluster.
Operation description
This operation is suitable for the following editions:
-
Enterprise Edition.
-
Basic Edition.
-
Data Lakehouse Edition.
-
Data Warehouse Edition in elastic mode: 32 cores and 128 GB or more.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeDBResourceGroup |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL Data Warehouse Edition (V3.0) clusters within a region. |
am-bp1ub9grke1**** |
| GroupName |
string |
No |
The name of the resource group. |
USER_DEFAULT |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| GroupsInfo |
array<object> |
The queried resource group. |
|
|
array<object> |
The resource group. |
||
| GroupType |
string |
The query execution mode. Valid values:
|
interactive |
| UpdateTime |
string |
The time when the resource group was updated. |
2022-11-09 16:57:35.241 |
| GroupName |
string |
The name of the resource group. |
USER_DEFAULT |
| MinComputeResource |
string |
The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
|
0ACU |
| MaxComputeResource |
string |
The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster. Unit: ACU.
|
32ACU |
| ClusterSizeResource |
string |
The resource specifications of a single compute cluster. Unit: ACU. |
16ACU |
| MinClusterCount |
integer |
The minimum number of compute clusters that are required in the resource group. Minimum value: 1. |
1 |
| MaxClusterCount |
integer |
The maximum number of compute clusters that are allowed in the resource group. Maximum value: 10. |
4 |
| RunningClusterCount |
integer |
The number of compute clusters running in the resource group. |
2 |
| ClusterMode |
string |
The working mode of the resource group. Valid values:
|
AutoScale |
| ElasticMinComputeResource |
string |
The minimum amount of elastic computing resources. Unit: ACU. |
16ACU |
| CreateTime |
string |
The time when the resource group was created. |
2022-10-09 16:57:35.241 |
| GroupUsers |
string |
The database accounts that are associated with the resource group. Multiple database accounts are separated by commas (,). |
testb,testc |
| NodeNum |
integer |
The number of nodes. Each node provides 16 cores and 64 GB memory. |
2 |
| GroupUserList |
array |
The database accounts that are associated with the resource group. |
|
|
string |
The database account that is associated with the resource group. |
user1 |
|
| Engine |
string |
The engine of the resource group. Valid values:
|
AnalyticDB |
| EngineParams |
object |
The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group. If you want to configure parameters for a specific Spark job, you can specify values for the parameters in the code editor when you submit the job. |
{\"spark.adb.version\":\"3.5\"} |
| Status |
string |
The status of the resource group. Valid values:
|
Running |
| ConnectionString |
string |
The endpoint of the resource group. Note
This parameter is returned only when the value of Engine is SparkWarehouse. |
amv-bp1nw64y******.ads.aliyuncs.com |
| Port |
string |
The port number of the resource group. Note
This parameter is returned only when the value of Engine is SparkWarehouse. |
3306 |
| DBClusterId |
string |
The cluster ID. |
am-bp1ub9grke1**** |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"GroupsInfo": [
{
"GroupType": "interactive",
"UpdateTime": "2022-11-09 16:57:35.241",
"GroupName": "USER_DEFAULT",
"MinComputeResource": "0ACU",
"MaxComputeResource": "32ACU",
"ClusterSizeResource": "16ACU",
"MinClusterCount": 1,
"MaxClusterCount": 4,
"RunningClusterCount": 2,
"ClusterMode": "AutoScale",
"ElasticMinComputeResource": "16ACU",
"CreateTime": "2022-10-09 16:57:35.241",
"GroupUsers": "testb,testc",
"NodeNum": 2,
"GroupUserList": [
"user1"
],
"Engine": "AnalyticDB",
"EngineParams": {
"test": "test",
"test2": 1
},
"Status": "Running",
"ConnectionString": "amv-bp1nw64y******.ads.aliyuncs.com",
"Port": "3306"
}
],
"DBClusterId": "am-bp1ub9grke1****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.