Mengkueri informasi penggunaan sumber daya kluster Database Analitik for MySQL.
Deskripsi operasi
For information about the endpoints of AnalyticDB for MySQL, see Endpoints.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeClusterResourceDetail |
get |
*DBClusterLakeVersion
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri informasi semua kluster Database Analitik for MySQL dalam suatu wilayah, termasuk ID kluster. |
am-bp1jj9xqft1po**** |
Elemen respons
|
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. After the preemptible instance feature is enabled, you are charged for resources at a lower unit price but the resources are probably released. Valid values:
The True value is returned only for job resource groups. |
true |
Contoh
Respons sukses
JSONformat
{
"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
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.