All Products
Search
Document Center

AnalyticDB:DescribeDBResourceGroup

Last Updated:Jun 24, 2025

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.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:DescribeDBResourceGroupget
*DBCluster
acs:adb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

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****
GroupNamestringYes

The name of the resource group.

USER_DEFAULT

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

1AD222E9-E606-4A42-BF6D-8A4442913CEF
GroupsInfoarray<object>

The queried resource group.

PoolInfoobject

The resource group.

GroupTypestring

The query execution mode. Valid values:

  • interactive (default)
  • batch
  • job
interactive
UpdateTimestring

The time when the resource group was updated.

2022-11-09 16:57:35.241
GroupNamestring

The name of the resource group.

USER_DEFAULT
MinComputeResourcestring

The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).

  • If the value of GroupType is interactive, 16ACU is returned.
  • If the value of GroupType is job, 0ACU is returned.
0ACU
MaxComputeResourcestring

The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster. Unit: ACU.

  • If the value of GroupType is interactive, the amount of reserved computing resources that are not allocated in the cluster is returned in increments of 16ACU.
  • If the value of GroupType is job, the amount of reserved computing resources that are not allocated in the cluster is returned in increments of 8ACU.
32ACU
ClusterSizeResourcestring

The resource specifications of a single compute cluster. Unit: ACU.

16ACU
MinClusterCountinteger

The minimum number of compute clusters that are required in the resource group. Minimum value: 1.

1
MaxClusterCountinteger

The maximum number of compute clusters that are allowed in the resource group. Maximum value: 10.

4
RunningClusterCountinteger

The number of compute clusters running in the resource group.

2
ClusterModestring

The working mode of the resource group. Valid values:

  • Disable (default)
  • AutoScale
AutoScale
ElasticMinComputeResourcestring

The minimum amount of elastic computing resources. Unit: ACU.

16ACU
CreateTimestring

The time when the resource group was created.

2022-10-09 16:57:35.241
GroupUsersstring

The database accounts that are associated with the resource group. Multiple database accounts are separated by commas (,).

testb,testc
NodeNuminteger

The number of nodes. Each node provides 16 cores and 64 GB memory.

2
GroupUserListarray

The database accounts that are associated with the resource group.

GroupUserListstring

The database account that is associated with the resource group.

user1
Enginestring

The engine of the resource group. Valid values:

  • AnalyticDB (default)
  • SparkWarehouse
AnalyticDB
EngineParamsobject

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\"}
Statusstring

The status of the resource group. Valid values:

  • Pending
  • Running
  • Scaling
  • Deleting
  • Deleted
Running
ConnectionStringstring

The endpoint of the resource group.

Note This parameter is returned only when the value of Engine is SparkWarehouse.
amv-bp1nw64y******.ads.aliyuncs.com
Portstring

The port number of the resource group.

Note This parameter is returned only when the value of Engine is SparkWarehouse.
3306
DBClusterIdstring

The cluster ID.

am-bp1ub9grke1****

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-01The Error code has changed. The response structure of the API has changedView Change Details