DescribeDBInstances
Queries a list of instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
selectdb:DescribeDBInstances |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-4690g37929**** |
| DBInstanceIds |
string |
No |
The instance IDs. Separate multiple instance IDs with commas (,). |
selectdb-cn-7213cjv**** |
| DBInstanceStatus |
string |
No |
The status of the instance. Valid values:
|
ACTIVATION |
| DBInstanceDescription |
string |
No |
The description of the instance. |
Create instance test |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| Tag |
array<object> |
No |
The instance tags. |
|
|
object |
No |
The instance tag. |
||
| Key |
string |
No |
The tag key. |
testKey |
| Value |
string |
No |
The tag value. |
testValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
BC854513-E85E-54F3-9842-B9CCD3308CDD |
| PageNumber |
integer |
The number of entries per page. Valid values:
|
30 |
| PageSize |
integer |
The page number. |
1 |
| TotalRecordCount |
integer |
The total number of records. |
2 |
| Items |
array<object> |
The list of instance details. |
|
|
array<object> |
The list of instance details. |
||
| connectionString |
string |
The endpoint. |
Not returned |
| DBInstanceId |
string |
The instance ID. |
selectdb-cn-7213cjv**** |
| Description |
string |
The description of the instance. |
Create instance test |
| Engine |
string |
The database engine. |
selectdb |
| EngineVersion |
string |
The database engine version. |
2.4 |
| InstanceUsedType |
string |
The instance usage type. |
Instance |
| 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:
|
PrePaid |
| Category |
string |
The instance edition. Default value: basic. |
basic |
| Status |
string |
The status of the instance. Valid values:
|
ACTIVATION |
| VpcId |
string |
The VPC ID. |
vpc-bp175iuvg8nxqraf2**** |
| VswitchId |
string |
The vSwitch ID. |
vsw-bp1gzt31twhlo0sa5**** |
| ResourceCpu |
integer |
The CPU resources. |
8 |
| ResourceMemory |
integer |
The memory resources. |
64 |
| ScaleMin |
integer |
The minimum number of RDS capacity units (RCUs) for automatic scaling of the instance. |
0 |
| ScaleMax |
integer |
The maximum number of RDS capacity units (RCUs) for automatic scaling of the instance. |
0 |
| ScaleReplica |
integer |
A redundant field. |
1 |
| StorageSize |
integer |
The storage capacity. |
100 |
| StorageType |
string |
The instance storage type. |
cloud_essd |
| ObjectStoreSize |
integer |
The instance storage size. Unit: GB. |
200 |
| ExpireTime |
string |
The expiration time of the cluster. The time follows the ISO 8601 standard and includes time zone information. Note
This parameter is returned only for clusters whose billing method is Prepaid (subscription). For clusters whose billing method is Postpaid (pay-as-you-go), an empty value is returned. |
2024-03-29T03:47:05Z |
| LockMode |
integer |
The lock mode of the instance. |
0 |
| LockReason |
string |
The reason why the instance is locked. |
nolock |
| IsDeleted |
boolean |
Indicates whether the instance is deleted. Valid values:
|
false |
| MaintainStarttime |
string |
A reserved parameter. It is not returned at the moment, so the time format does not apply. |
Reserved parameter. Not returned |
| MaintainEndtime |
string |
A reserved parameter. It is not returned at the moment, so the time format does not apply. |
Reserved parameter. Not returned |
| GmtCreated |
string |
The time when the task was created (GMT). |
2023-08-12T04:14Z |
| GmtModified |
string |
The time when the task was modified (GMT). |
2023-08-12T19:05Z |
| ParentInstance |
string |
The creation time. |
Reserved parameter. Not returned |
| ResourceGroupId |
string |
The resource group ID. |
Reserved parameter. Not returned |
| MaintainStartTimeStr |
string |
The start timestamp of the maintenance window. |
Reserved parameter. Not returned |
| MaintainEndTimeStr |
string |
The end timestamp of the maintenance window. |
Reserved parameter. Not returned |
| TenantClusterId |
string |
The ID of the Prometheus monitoring cluster. |
Reserved parameter. Not returned |
| TenantToken |
string |
The access token for Prometheus monitoring. |
Reserved parameter. Not returned |
| TenantUserId |
string |
The user account label for Prometheus monitoring. |
Reserved parameter. Not returned |
| Tags |
array<object> |
The instance tags. |
|
|
object |
The instance tag. |
||
| TagKey |
string |
The tag key. |
testKey |
| TagValue |
string |
The tag value. |
testValue |
| ClusterCount |
integer |
The total number of clusters. |
1 |
| DeployScheme |
string |
The deployment mode of the instance. Valid values:
|
single_az |
| MultiZone |
array<object> |
The multi-zone configuration. |
|
|
object |
The multi-zone list. |
||
| ZoneId |
string |
The zone ID. |
cn-beijing-k |
| VSwitchIds |
array |
The list of vSwitch IDs. |
|
|
string |
The vSwitch ID. |
vsw-bp1pla4vl8bs9uw9c7l2w |
|
| EngineMinorVersion |
string |
The minor engine version of the instance. |
4.0.4 |
| Serverless |
boolean |
Indicates whether the instance is a serverless instance. |
false |
| TdeEnabled |
boolean |
Indicates whether TDE is enabled. |
|
| FEClusterList |
array<object> |
The list of FE clusters. |
|
|
object |
The FE cluster information. |
||
| DbClusterId |
string |
The name of the FE cluster. |
selectdb-cn-demo12345-fe |
| Status |
string |
The status of the FE cluster. |
ACTIVATION |
| SingleNodeCpuCores |
integer |
The number of CPU cores per node in the FE cluster. |
0 |
| SingleNodeMemoryInGB |
integer |
The memory per node in the FE cluster. Unit: GB. |
0 |
| NodeCount |
integer |
The number of nodes in the FE cluster. |
0 |
Examples
Success response
JSON format
{
"RequestId": "BC854513-E85E-54F3-9842-B9CCD3308CDD",
"PageNumber": 30,
"PageSize": 1,
"TotalRecordCount": 2,
"Items": [
{
"connectionString": "Not returned",
"DBInstanceId": "selectdb-cn-7213cjv****",
"Description": "New instance test",
"Engine": "selectdb",
"EngineVersion": "2.4",
"InstanceUsedType": "Instance",
"RegionId": "cn-hangzhou",
"ZoneId": "cn-hangzhou-i",
"ChargeType": "PrePaid",
"Category": "basic",
"Status": "ACTIVATION",
"VpcId": "vpc-bp175iuvg8nxqraf2****",
"VswitchId": "vsw-bp1gzt31twhlo0sa5****",
"ResourceCpu": 8,
"ResourceMemory": 64,
"ScaleMin": 0,
"ScaleMax": 0,
"ScaleReplica": 0,
"StorageSize": 100,
"StorageType": "cloud_essd",
"ObjectStoreSize": 200,
"ExpireTime": "2024-03-29T03:47:05Z",
"LockMode": 0,
"LockReason": "nolock",
"IsDeleted": false,
"MaintainStarttime": "Reserved parameter. Not returned",
"MaintainEndtime": "Reserved parameter. Not returned",
"GmtCreated": "2023-08-12T04:14Z\n",
"GmtModified": "2023-08-12T19:05Z",
"ParentInstance": "Reserved parameter. Not returned",
"ResourceGroupId": "Reserved parameter. Not returned",
"MaintainStartTimeStr": "Reserved parameter. Not returned",
"MaintainEndTimeStr": "Reserved parameter. Not returned",
"TenantClusterId": "Reserved parameter. Not returned",
"TenantToken": "Reserved parameter. Not returned",
"TenantUserId": "Reserved parameter. Not returned",
"Tags": [
{
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"ClusterCount": 1,
"DeployScheme": "single_az",
"MultiZone": [
{
"ZoneId": "cn-beijing-k",
"VSwitchIds": [
"vsw-bp1pla4vl8bs9uw9c7l2w"
]
}
],
"EngineMinorVersion": "4.0.4",
"Serverless": false,
"TdeEnabled": false,
"FEClusterList": [
{
"DbClusterId": "selectdb-cn-demo12345-fe",
"Status": "ACTIVATION",
"SingleNodeCpuCores": 0,
"SingleNodeMemoryInGB": 0,
"NodeCount": 0
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPageNumber.Malformed | The specified parameter "PageNumber" is not valid. | The number of records per page parameter is illegal. |
| 400 | DocumentConvertFailed.ExceedFileSizeLimit | The conversion has been failed, exceed file size limit. | english description1 |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | english description1 |
| 400 | InvalidDBName | The specified database name is not allowed. | english description1 |
| 400 | CreateOrderFailed | Failed to create order. | Failed to create order. |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | The requested operation cannot be performed while the cluster is not running. |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | english description1 |
| 403 | InstanceEngineType.NotSupport | The instance engine and type does not support operations. | english description1 |
| 403 | InvalidDBInstanceState.NotSupport | The specified instance state does't support this operation. | The instance is in a state that does not support the current operation. |
| 403 | MoneyLessThan100 | The Account Monet less Than 100. | english description1 |
| 403 | OperationDenied.DBNameAndAccountPrivilegeCount | The operation is not permitted due to count of database or account privilege. | english description1 |
| 403 | InsufficientResourceCapacity | The resource is out of usage. | Not enough resources, please try again later. |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | english description1 |
| 404 | IncorrectVswitchId | The specified parameter VSwitchId is not valid. | english description1 |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstance.NotFound | The specified instance is not found. | english description1 |
| 404 | InvalidDBInstanceClass.NotFound | The specified instance classic does not exist. | english description1 |
| 404 | InvalidRegionId.NotFound | The provided RegionId does not exist in our records. | english description1 |
| 404 | QueryPrice.Failed | The inquiry failed. Contact Alibaba Cloud customer service representatives. | english description1 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.