Queries 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 | The IDs of the instances. Separate multiple instance IDs with commas (,). | cc-xxxxx,cx-xxxx |
DBInstanceStatus | string | No | The instance status. | active |
Description | string | No | The instance description. | test |
PageSize | integer | No | The number of entries to return on each page. | 30 |
PageNumber | integer | No | The page number. | 1 |
ResourceGroupId | string | No | The resource group ID. | rg-4690g37929**** |
| Tags | array<object> | No | The tag information. | |
object | No | The tag information. | ||
Key | string | No | The tag key. | user_123 |
Value | string | No | The tag value. | 示例值 |
Response elements
Element | Type | Description | Example |
object | The details of the response parameters. | ||
| Data | object | The data that is returned. | |
TotalCount | string | The total number of entries. | 1 |
PageSize | integer | The number of entries returned per page. | 30 |
PageNumber | integer | The page number. | 1 |
| DBInstances | array<object> | A list of instance details. | |
array<object> | The details of the instance. | ||
DBInstanceId | string | The instance ID. | cc-xxxxxxx |
Description | string | The description of the instance. | test_desc |
Engine | string | The database engine. | clickhouse |
EngineVersion | string | The database 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 of the instance. Valid values:
| PostPaid |
Status | string | The instance status. | active |
VpcId | string | The ID of the virtual private cloud (VPC). | vpc-uf6kg**** |
VSwitchId | string | The vSwitch ID. | vsw-8vb5mw**** |
ScaleMin | integer | The minimum resources for serverless elastic scaling. | 1 |
ScaleMax | integer | The maximum resources 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 start time of the maintenance window. | 00:00Z |
MaintainEndTime | string | The end time of the maintenance window. | 04:00:00Z |
DeletionProtection | string | Indicates whether release protection is enabled. | False |
ResourceGroupId | string | The resource group ID. | rg-acfmzy**** |
CreateTime | string | The time when the instance was created. | 2022-12-04 21:16:15 |
| Tags | array<object> | The tags of the instance. | |
object | The tag. | ||
Key | string | The tag key. | tag |
Value | string | The tag value. | test |
StorageType | string | The storage class of the instance. | 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.