Queries resource usage details of an AnalyticDB for MySQL cluster.
Operation description
For information about the endpoints of AnalyticDB for MySQL, see Endpoints.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeClusterResourceDetail |
get |
*DBClusterLakeVersion
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the information about all AnalyticDB for MySQL clusters within a region, including cluster IDs. |
am-bp1jj9xqft1po**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| Code |
integer |
The HTTP status code. |
200 |
| Data |
object |
The queried resource usage. |
|
| DBClusterId |
string |
The cluster ID. |
amv-adbxxxxx |
| ComputeResource |
string |
The amount of reserved computing resources. Unit: AnalyticDB compute units (ACUs). Valid values: 0 to 4096. The value must be in increments of 16 ACUs. Each ACU is equivalent to 1 core and 4 GB memory. |
16ACU |
| FreeComputeResource |
string |
The amount of idle reserved computing resources. Unit: ACUs. Valid values: 0 to 4096. The value must be in increments of 16 ACUs. Each ACU is equivalent to 1 core and 4 GB memory. |
0ACU |
| StorageResource |
string |
The amount of reserved storage resources. Unit: ACUs. Valid values: 0 to 2064. The value must be in increments of 24 ACUs. Each ACU is equivalent to 1 core and 4 GB memory. |
24ACU |
| ResourceGroupList |
array<object> |
The resource groups. |
|
|
object |
|||
| PoolId |
integer |
The resource group ID. |
17 |
| PoolName |
string |
The name of the resource group. |
testadb |
| PoolType |
string |
The type of the resource group. |
interactive |
| MinComputeResource |
string |
The minimum amount of reserved computing resources. |
16ACU |
| MaxComputeResource |
string |
The maximum amount of reserved computing resources. |
128ACU |
| PoolUsers |
string |
The user of the resource group. |
user1 |
| Status |
string |
The status of the resource group. Valid values:
|
running |
| ClusterSizeResource |
string |
A reserved parameter. |
0 |
| MinClusterCount |
integer |
A reserved parameter. |
0 |
| MaxClusterCount |
integer |
A reserved parameter. |
0 |
| RunningClusterCount |
integer |
A reserved parameter. |
0 |
| ClusterMode |
string |
A reserved parameter. |
0 |
| EnableSpot |
boolean |
Indicates whether the preemptible instance feature is enabled for the resource group. When this feature is enabled, resources are offered at a lower unit price but may be released. Valid values:
A value of true is returned only for job resource groups. |
true |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Code": 200,
"Data": {
"DBClusterId": "amv-adbxxxxx",
"ComputeResource": "16ACU",
"FreeComputeResource": "0ACU",
"StorageResource": "24ACU",
"ResourceGroupList": [
{
"PoolId": 17,
"PoolName": "testadb",
"PoolType": "interactive",
"MinComputeResource": "16ACU",
"MaxComputeResource": "128ACU",
"PoolUsers": "user1",
"Status": "running",
"ClusterSizeResource": "0",
"MinClusterCount": 0,
"MaxClusterCount": 0,
"RunningClusterCount": 0,
"ClusterMode": "0",
"EnableSpot": true
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.