You can call this operation to query the detailed information about 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 DescribeDBInstanceForDms

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

Host String Yes

The endpoint that is used to connect to the instance.

Port Long Yes 5432

The port that is used to connect to the instance.

Response parameters

Parameter Type Example Description
Code String "200"

The internal status code.

Count Long 1

The number of instances.

HttpStatusCode Integer 200

The HTTP status code.

Instance Struct

Details about the instance.

AliUid String 1234566788909

The ID of the Alibaba Cloud account.

Bid String 26842

The ID of the account group, indicating that the account belongs to Alibaba Finance Cloud, Alibaba Gov Cloud, or Alibaba Cloud.

ConnectionString String

The endpoint of the instance.

DbInstanceName String gp-xxxxxxxxxxxx

The ID of the instance.

DbType String gpdb

The database engine of the instance.

Description String ""

The description of the instance.

InstanceNetworkType String vpc

The network type of the instance.

Port String 5432

The number of the port that is used to connect to the instance.

Region String ap-southeast-1

The ID of the region.

VSwitchId String vsw-xxxxxxxxxxxxxxxxx

The vSwitch ID of the instance.

Version String 6.0

The version of the instance.

VpcCloudInstanceId String gp-xxxxxxxxxxxxxxxxx-master-202103122033

The ID of the VPC-type instance.

VpcId String vpc-xxxxxxxxxxxxxxxxx

The VPC ID of the instance.

VpcIp String

The IP address of the VPC.

Message String ""

The returned error message.

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

The ID of the request.

Success Boolean true

Indicates whether the request is successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "Message": "",
  "RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AADF5B",
  "Instance": {
    "VpcIp": "",
    "VSwitchId": "vsw-xxxxxxxxxxxxxxxxx",
    "Port": "5432",
    "DbType": "gpdb",
    "InstanceNetworkType": "vpc",
    "VpcId": "vpc-xxxxxxxxxxxxxxxxx",
    "Version": "6.0",
    "VpcCloudInstanceId": "gp-xxxxxxxxxxxxxxxxx-master-202103122033",
    "Region": "ap-southeast-1",
    "ConnectionString": "",
    "Bid": "12345",
    "DbInstanceName": "gp-xxxxxxxxxxxx",
    "AliUid": "1234567890"
  "HttpStatusCode": 200,
  "Count": 1,
  "Code": "200",
  "Success": true

Error codes

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