You can call this operation to query the details of an AnalyticDB for PostgreSQL instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDBInstanceAttribute

The operation that you want to perform. Set the value to DescribeDBInstanceAttribute.

DBInstanceId String Yes gp-xxxxxxx

The ID of the instance.

Response parameters

Parameter Type Example Description
Items Array of DBInstanceAttribute

Details about the instance.

AvailabilityValue String 100.0%

The service availability of the current instance. Unit: %.

ConnectionMode String Performance

The access mode of the instance.

  • Performance: standard mode
  • Safety: safe mode
ConnectionString String

The endpoint that is used to connect to the specified database.

CpuCoresPerNode Integer 2

The number of CPU cores per node.

CreationTime String 2018-06-27T12:07:10Z

The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. Example: 2019-05-30T12:11:4Z.

DBInstanceClass String

The specifications of the instance.

DBInstanceClassType String x

The instance family. Valid values:

  • s: shared instance
  • x: general-purpose instance
  • d: dedicated instance
  • h: dedicated host instance
DBInstanceCpuCores Integer 2

The number of CPU cores of the instance.

DBInstanceDescription String gp-xxxxxxx

The description of the instance.

DBInstanceDiskMBPS Long 300

The maximum disk throughput of a compute node. Unit: Mbit/s.

DBInstanceGroupCount String 2

The number of compute nodes.

DBInstanceId String gp-xxxxxxx

The ID of the instance.

DBInstanceMemory Long 16384

The memory capacity of the instance. Unit: MB.

DBInstanceNetType String Internet

The type of the network interface card (NIC) that is used by the instance.

  • Internet
  • Intranet
DBInstanceStatus String Running

The state of the instance. For more information, see Instance statuses.

DBInstanceStorage Long 160

The disk space of the instance. Unit: GB.

Engine String gpdb

The database engine of the instance

EngineVersion String 4.3

The version of the database engine.

ExpireTime String 2019-06-27T16:00:00Z

The expiration time of the instance.

HostType String 1

The disk type of compute nodes. Valid values:

  • 0: SSD
  • 1: HDD
InstanceNetworkType String VPC

The network type of the instance. Valid values:

  • Classic
  • VPC
LockMode String Unlock

The locking mode of the instance. Valid values:

  • Unlock: The instance is not locked.
  • ManualLock: The instance is manually locked.
  • LockByExpiration: The instance is automatically locked after the instance expires.
  • LockByRestoration: The instance is automatically locked before a rollback.
  • LockByDiskQuota: The instance is automatically locked when the disk space is full.
LockReason String Unknow

The reason why the instance was locked.

MaintainEndTime String 22:00Z

The end time of the maintenance window.

MaintainStartTime String 18:00Z

The start time of the maintenance window.

MaxConnections Integer 500

The maximum number of concurrent connections to an instance.

MemoryPerNode Integer 1664

The memory capacity per node.

MemoryUnit String MB

The unit of the memory capacity.

PayType String Prepaid

The billing method of the instance. Valid values:

  • Postpaid: pay-as-you-go
  • Prepaid: subscription
Port String 3432

The port used to connect to the instance.

ReadDelayTime String 2

The read latency of the instance.

RegionId String cn-hangzhou-e

The region ID of the instance.

SecurityIPList String

The list of one or more IP addresses that are allowed to access the instance.

SegmentCounts Integer 2

The number of compute nodes.

StoragePerNode Integer 1664

The disk space per node.

StorageType String HDD

The type of the disk.

StorageUnit String MB

The unit of the disk space.

Tags Array of Tag

The list of one or more tags. Each tag consists of a key-value pair.

Key String key1

The tag key of the instance.

Value String value1

The tag value of the instance.

VpcId String vpc-xxxxxxxx

The ID of the VPC for which the ClassicLink feature is enabled.

ZoneId String cn-hangzhou

The zone ID of the instance.

RequestId String B4CAF581-2AC7-41AD-8940-D56DF7AADF5B

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.