All Products
Search
Document Center

ApsaraDB for SelectDB:DescribeDBInstanceAttribute

Last Updated:Dec 18, 2024

Queries the details about an ApsaraDB for SelectDB instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
selectdb:DescribeDBInstanceAttributelist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The instance ID.

selectdb-cn-7213cjv****
RegionIdstringYes

The region ID of the instance.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

06758CAB-1204-5852-A471-29C87D5C1D0F
Statusstring

The state of the instance. Valid values:

  • CREATING: The instance is being created.
  • ACTIVATION: The instance is running.
  • RESOURCE_CHANGING: The resource configuration of the instance is being changed.
  • ORDER_PREPARING: The order is being confirmed.
  • READONLY_RESOURCE_CHANGING: The resource configuration of the instance is being changed and the instance is write-locked.
  • DELETING: The instance is being deleted.
ACTIVATION
SubDomainstring

The subdomain zone ID.

cn-beijing-h-aliyun
GmtModifiedstring

The time when the instance was last modified, such as when you restarted the instance or applied for a public endpoint for the instance. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2023-08-17T09:58Z
LockModelong

The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.

lock
LockReasonstring

The reason why the instance is locked.

nolock
ResourceCpulong

The number of CPU cores of the instance.

8
StorageSizelong

The cache size.

400
ObjectStoreSizelong

The storage capacity of the instance.

0
MaintainStarttimestring

The start time of the instance maintenance window.

1970-01-01T02:00Z
MaintainEndtimestring

The end time of the instance maintenance window.

1970-01-01T05:00Z
DBClusterListarray<object>

The information about each cluster returned.

DbClusterListobject
DbInstanceNamestring

The instance name.

test instance
DbClusterIdstring

The ID of the cluster.

selectdb-cn-h033cjs****-be
DbClusterNamestring

The name of the cluster.

test01
Statusstring

The state of the cluster. Valid values:

  • CREATING: The cluster is being created.
  • ACTIVATION: The cluster is running.
  • RESOURCE_CHANGING: The resource configuration of the cluster is being changed.
  • ORDER_PREPARING: The order is being confirmed.
  • READONLY_RESOURCE_CHANGING: The resource configuration of the cluster is being changed and the cluster is write-locked.
  • DELETING: The cluster is being deleted.
ACTIVATION
CreatedTimestring

The time when the cluster was created.

2023-08-14T09:24:13Z
DbClusterClassstring

The specifications of the cluster. Valid values:

  • selectdb.xlarge: 4 CPU cores and 32 GB of memory.
  • selectdb.2xlarge: 8 CPU cores and 64 GB of memory.
  • selectdb.4xlarge: 16 CPU cores and 128 GB of memory.
  • selectdb.8xlarge: 32 CPU cores and 256 GB of memory.
  • selectdb.16xlarge: 64 CPU cores and 512 GB of memory.
  • selectdb.24xlarge: 96 CPU cores and 768 GB of memory.
  • selectdb.32xlarge: 128 CPU cores and 1,024 GB of memory.
selectdb.2xlarge
CpuCoreslong

The number of CPU cores.

8
Memorylong

The memory size.

64
CacheStorageTypestring

The cache type.

cloud_essd
PerformanceLevelstring

The performance level.

PL1
CacheStorageSizeGBstring

The cache size. Unit: GB.

200
StartTimestring

The time when the cluster started.

2023-08-14T09:24:13Z
ChargeTypestring

The billing method of the cluster. Valid values:

  • Postpaid: pay-as-you-go.
  • Prepaid: subscription.
Prepaid
ModifiedTimestring

The modified time.

2024-07-02T16:35:44+08:00
Enginestring

The database engine of the instance.

selectdb
EngineVersionstring

The database engine version of the instance.

2.4
EngineMinorVersionstring

The minor kernel version number of the instance.

3.0.1
DBInstanceIdstring

The instance ID.

selectdb-cn-7213cjv****
Descriptionstring

The description of the instance.

test
CreateTimestring

The time when the instance was created.

2023-08-14T03:00:42Z
CanUpgradeVersionsarray

The information returned.

canUpgradeCanUpgradeVersionsVersionsstring

The information returned.

test
ChargeTypestring

The billing method of the instance. Valid values:

  • Postpaid: pay-as-you-go.
  • Prepaid: subscription.
Prepaid
ExpireTimestring

The time when the instance expires.

2023-09-17T00:00Z
ResourceGroupIdstring

The ID of the resource group to which the instance belongs.

rg-aekzbck4asz3dsa
Tagsarray<object>

The tags that are added to the instances. Each tag is a key-value pair that consists of two parts: TagKey and TagValue. Format: {"key1":"value1"}.

Tagsobject
TagKeystring

The tag key.

testKey
TagValuestring

The tag value.

testValue
RegionIdstring

The Region ID.

cn-beijing
ZoneIdstring

The Zone ID.

cn-beijing-h
VpcIdstring

The VPC ID.

vpc-bp175iuvg8nxqraf2****

Examples

Sample success responses

JSONformat

{
  "RequestId": "06758CAB-1204-5852-A471-29C87D5C1D0F",
  "Status": "ACTIVATION",
  "SubDomain": "cn-beijing-h-aliyun",
  "GmtModified": "2023-08-17T09:58Z",
  "LockMode": 0,
  "LockReason": "nolock",
  "ResourceCpu": 8,
  "StorageSize": 400,
  "ObjectStoreSize": 0,
  "MaintainStarttime": "1970-01-01T02:00Z",
  "MaintainEndtime": "1970-01-01T05:00Z",
  "DBClusterList": [
    {
      "DbInstanceName": "test instance",
      "DbClusterId": "selectdb-cn-h033cjs****-be",
      "DbClusterName": "test01",
      "Status": "ACTIVATION",
      "CreatedTime": "2023-08-14T09:24:13Z",
      "DbClusterClass": "selectdb.2xlarge",
      "CpuCores": 8,
      "Memory": 64,
      "CacheStorageType": "cloud_essd",
      "PerformanceLevel": "PL1",
      "CacheStorageSizeGB": "200",
      "StartTime": "2023-08-14T09:24:13Z",
      "ChargeType": "Prepaid",
      "ModifiedTime": "2024-07-02T16:35:44+08:00"
    }
  ],
  "Engine": "selectdb",
  "EngineVersion": "2.4",
  "EngineMinorVersion": "3.0.1",
  "DBInstanceId": "selectdb-cn-7213cjv****",
  "Description": "test",
  "CreateTime": "2023-08-14T03:00:42Z",
  "CanUpgradeVersions": [
    "test"
  ],
  "ChargeType": "Prepaid",
  "ExpireTime": "2023-09-17T00:00Z",
  "ResourceGroupId": "rg-aekzbck4asz3dsa",
  "Tags": [
    {
      "TagKey": "testKey",
      "TagValue": "testValue"
    }
  ],
  "RegionId": "cn-beijing",
  "ZoneId": "cn-beijing-h",
  "VpcId": "vpc-bp175iuvg8nxqraf2****"
}

Error codes

HTTP status codeError codeError messageDescription
400DocumentConvertFailed.ExceedFileSizeLimitThe conversion has been failed, exceed file size limit.english description1
400ForbiddenUser not authorized to operate on the specified resource, or this API does not support RAM.english description1
400InvalidDBNameThe specified database name is not allowed.english description1
400CreateOrderFailedFailed to create order.Failed to create order.
403DBClusterNotSupportedThe requested operation can not be performed while the cluster is not sale.The requested operation cannot be performed while the cluster is not running.
403IncorrectDBInstanceStateCurrent DB instance state does not support this operation.english description1
403InstanceEngineType.NotSupportThe instance engine and type does not support operations.english description1
403InvalidDBInstanceState.NotSupportThe specified instance state does't support this operation.The instance is in a state that does not support the current operation.
403MoneyLessThan100The Account Monet less Than 100.english description1
403OperationDenied.DBNameAndAccountPrivilegeCountThe operation is not permitted due to count of database or account privilege.english description1
403InsufficientResourceCapacityThe resource is out of usage.Not enough resources, please try again later.
404InvalidDBInstanceId.NotFoundThe DBInstanceId provided does not exist in our records.Instance does not exist.
404InvalidClusterInstance.NotFoundSpecified cluster instance does not exist.SelectDB instance does not exist.
404DBInstanceLockedThe current instance lock mode does not support this operation.english description1
404IncorrectVswitchIdThe specified parameter VSwitchId is not valid.english description1
404InvalidApi.NotFoundSpecified api is not found, please check your url and method.-
404InvalidDBInstance.NotFoundThe specified instance is not found.english description1
404InvalidDBInstanceClass.NotFoundThe specified instance classic does not exist.english description1
404InvalidRegionId.NotFoundThe provided RegionId does not exist in our records.english description1
404QueryPrice.FailedThe inquiry failed. Contact Alibaba Cloud customer service representatives.english description1

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-09The Error code has changed. The response structure of the API has changedView Change Details
2024-06-24The Error code has changedView Change Details
2024-06-12The response structure of the API has changedView Change Details
2024-03-15The response structure of the API has changedView Change Details
2023-12-27The response structure of the API has changedView Change Details