Call the DescribeDBInstances API to query a list of DB instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeDBInstances |
get |
*EnterpriseDBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| DBInstanceIds |
string |
No |
A comma-separated list of instance IDs. |
cc-xxxxx,cx-xxxx |
| VpcIds |
string |
No |
A comma-separated list of VPC IDs. |
vpc-2ze4ee9z******,vpc-2ze4ee9z5l****** |
| DBInstanceStatus |
string |
No |
The instance status. |
active |
| Description |
string |
No |
The instance description. |
test |
| PageSize |
integer |
No |
The number of entries per page. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-4690g37929**** |
| Tags |
array<object> |
No |
The tags for filtering instances. |
DescribeDBInstances |
|
object |
No |
A tag, which is a key-value pair. |
||
| Key |
string |
No |
The tag key. |
user_123 |
| Value |
string |
No |
The tag value. |
example value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The details of the response. |
||
| Data |
object |
The response data. |
|
| TotalCount |
string |
The total number of entries. |
1 |
| PageSize |
integer |
The number of entries per page. |
30 |
| PageNumber |
integer |
The page number. |
1 |
| DBInstances |
array<object> |
The list of instance details. |
|
|
array<object> |
Details of an instance. |
||
| DBInstanceId |
string |
The instance ID. |
cc-xxxxxxx |
| Description |
string |
The instance description. |
test_desc |
| Engine |
string |
The engine. |
clickhouse |
| EngineVersion |
string |
The engine version. |
22.8 |
| AliUid |
string |
The account ID. |
1294**** |
| Bid |
string |
The channel ID. |
186681**** |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| ChargeType |
string |
The billing method for the instance. Valid values:
|
PostPaid |
| Status |
string |
The instance status. |
active |
| VpcId |
string |
The VPC ID. |
vpc-uf6kg**** |
| VSwitchId |
string |
The vSwitch ID. |
vsw-8vb5mw**** |
| ScaleMin |
integer |
The minimum compute capacity for serverless elastic scaling. |
1 |
| ScaleMax |
integer |
The maximum compute capacity for serverless elastic scaling. |
13 |
| ExpireTime |
string |
The expiration time. |
2024-02-16 11:51:06 |
| LockMode |
string |
The lock mode. |
0 |
| LockReason |
string |
The reason for the lock. |
null |
| MaintainStartTime |
string |
The maintenance window start time. |
00:00Z |
| MaintainEndTime |
string |
The maintenance window end time. |
04:00:00Z |
| DeletionProtection |
string |
Indicates whether deletion protection is enabled. |
False |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmzy**** |
| CreateTime |
string |
The instance creation time. |
2022-12-04 21:16:15 |
| Tags |
array<object> |
The tags attached to the instance. |
|
|
object |
A tag. |
||
| Key |
string |
The tag key. |
tag |
| Value |
string |
The tag value. |
test |
| StorageType |
string |
The instance storage type. |
oss |
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
Examples
Success response
JSON format
{
"Data": {
"TotalCount": "1",
"PageSize": 30,
"PageNumber": 1,
"DBInstances": [
{
"DBInstanceId": "cc-xxxxxxx",
"Description": "test_desc",
"Engine": "clickhouse",
"EngineVersion": "22.8",
"AliUid": "1294****",
"Bid": "186681****",
"RegionId": "cn-hangzhou",
"ZoneId": "cn-hangzhou-i",
"ChargeType": "PostPaid",
"Status": "active",
"VpcId": "vpc-uf6kg****",
"VSwitchId": "vsw-8vb5mw****",
"ScaleMin": 1,
"ScaleMax": 13,
"ExpireTime": "2024-02-16 11:51:06",
"LockMode": "0",
"LockReason": "null",
"MaintainStartTime": "00:00Z",
"MaintainEndTime": "04:00:00Z",
"DeletionProtection": "False",
"ResourceGroupId": "rg-acfmzy****",
"CreateTime": "2022-12-04 21:16:15",
"Tags": [
{
"Key": "tag",
"Value": "test"
}
],
"StorageType": "oss"
}
]
},
"RequestId": "xxx-xxx-xxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.