This API is used to query detailed attributes of a specified instance.

Request parameters

Name Type Required or not Description
Action String Yes Required parameter. Value: DescribeDBInstanceAttribute.
DBInstanceId String Yes Instance ID. Up to 30 IDs can be entered at a time, which are separated by commas (,).

Return parameters

Name Type Description
<Public Return Parameters> - For more information, see Public parameters.
Items List<DBInstanceAttribute> -

Parameter of DBInstanceAttribute

Name Type Description
DBInstanceId String Instance ID
PayType String
  • Postpaid: Pay-As-You-Go
  • Prepaid: Subscription
Dbinstancetype String
  • Primary: primary instance
  • Readonly: read-only instance
  • Guard: disaster recovery instance
  • Temp: temporary instance
Category String
  • Basic: basic edition (single-node)
  • Standard: standard edition (high-available)
  • Enterprise: enterprise edition
InstanceNetworkType String
  • Classic: classic network
  • VPC: VPC
ConnectionMode String
  • Performance: standard access mode
  • Safety: high security access mode
RegionId String Region ID
ZoneId String Zone ID
ConnectionString String Connection address
Port String Application access port
Engine String Database type
Engineversion String Database version
DBInstanceClassType String Instance type family. Value range:
  • s: Shared instance
  • x: General Instance
  • d: Dedicated instance;
  • h: Dedicated-host instance
DBInstanceClass String Instance type
DBInstanceMemory Long Instance memory. Unit: MB.
DBInstanceStorage Integer Instance storage space. Unit: GB.
DBInstanceNetType String
  • Internet: public network
  • Intranet: private network
DBInstanceStatus String For instance status, see Instance status table.
DBInstanceDescription String Instance remarks
LockMode String
  • Unlock: normal
  • ManualLock: locked when manually triggered
  • LockByExpiration: automatically locked upon expiration
  • LockByRestoration: automatically locked before instance rollback
  • LockByDiskQuota: automatically locked upon full instance space
LockReason String Reason why an instance is locked
DBMaxQuantity Integer Maximum number of databases that can be created for an instance
AccountMaxQuantity Integer Maximum number of accounts that can be created
CreationTime String Creation time. Format: YYYY-MM-DDThh:mm:ssZ, for example, 2011-05-30T12:11:4Z.
ExpireTime String Expiration time. Pay-As-You-Go instances never expire.
MaintainTime String Instance maintenance time. For example, 00:00Z-02:00Z indicates that routine maintenance can be performed from 0:00 to 2:00.
AvailabilityValue String Instance availability status of the current year. Unit: percentage.
MaxIOPS Integer Maximum number of I/O requests, namely, IOPS
MaxConnections Integer Maximum number of concurrent connections to an instance
MasterInstanceId String Primary instance ID. If this parameter is not returned (that is, if it is null), the current instance is a primary instance.
IncrementSourceDBInstanceId String Instance ID of the incremental data source. For example, a disaster recovery instance’s incremental data source is a primary instance. A read-only instance’s incremental data source is a primary instance, and a primary instance’s incremental data source is NULL.
GuardDBInstanceId String ID of a disaster recovery instance if it is attached to the current instance
TempDBInstanceId String ID of a temporary instance if it is attached to the current instance
ReadOnlyDBInstanceIds List<OnlyDBInstanceId> ID list of read-only instances attached to the primary instance
SecurityIPList String Deprecated. For more information, see DescribeDBInstanceIPArrayList.
AdvancedFeatures String Currently only valid for SQL Server instances. Obtain advanced property values, and separate multiple values by commas (,). The return value is - LinkedServer -. DistributeTransaction


Name Type Description
<Public return parameters>  - For more information, see Public parameters.
DBInstanceId String ID of a read-only instance

Request example
&<Public Request Parameters>

Return example

XML format

    <ConnectionString> </ConnectionString>
    <Value> 100.0% </value>
    <RegionId>cn-hangzhou </RegionId>
    <Paytype> postpaid </paytype>

JSON format

  "Items": {
    "DBInstanceAttribute": [
        "LockMode": "Unlock", 
        "ConnectionString": "", 
        "CreationTime": "2014-10-10T10:28:48Z", 
        "DBInstanceNetType": "Internet", 
        "ReadOnlyDBInstanceIds": {
          "ReadOnlyDBInstanceId": []
        "MaxConnections": 60, 
        "LockReason": "", 
        "Engine": "MySQL", 
        "AvailabilityValue": "100.0%", 
        "AccountMaxQuantity": 50, 
        "DBMaxQuantity": 200, 
        "RegionId": "cn-hangzhou", 
        "TempDBInstanceId": "", 
        "DBInstanceMemory": 240, 
        "MaxIOPS": 150, 
        "DBInstanceType": "Primary", 
        "DBInstanceStatus": "Running", 
        "MasterInstanceId": "", 
        "EngineVersion": "5.5", 
        "IncrementSourceDBInstanceId": "", 
        "GuardDBInstanceId": "", 
        "DBInstanceStorage": 10, 
        "DBInstanceDescription": "", 
        "DBInstanceId": "rdsfnjfqu7vjnuj", 
        "PayType": "Postpaid", 
        "ExpireTime": "", 
        "MaintainTime": "", 
        "Maid": "RDS. mys2.small ", 
        "SecurityIPList": "", 
        "Port": "3306",
        "AdvancedFeatures": "LinkedServer,DistributeTransaction"
  "RequestId": "27BB49FA-DA47-4162-B39D-FC001E35C1C1"