Queries the details of an AnalyticDB for PostgreSQL instance.
Operation description
How-To
View the specifications, network type, status, and other details of an AnalyticDB for PostgreSQL instance.
Queries per second (QPS) limit
The default QPS limit for this API is 1,000 queries per second per user. Exceeding this limit triggers rate limiting, which may affect your business.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDBInstanceAttribute |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
This parameter is deprecated and does not need to be specified. |
null |
| DBInstanceId |
string |
Yes |
Instance ID. Note
You can invoke the DescribeDBInstances API to view the instance IDs of all AnalyticDB for PostgreSQL instances in the destination region. |
gp-bp13ue79qk8y1**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Items |
object |
||
| DBInstanceAttribute |
array<object> |
List of instance details. |
|
|
array<object> |
Details. |
||
| AvailabilityValue |
string |
Current instance availability, in percentage (%). Note
This parameter applies only to instances in reserved storage mode. |
100.0% |
| ConnectionMode |
string |
Access mode. Valid values:
|
LVS |
| ConnectionString |
string |
Connection address of the instance. |
gp-bp13ue79qk8y1****-master.gpdb.rds.aliyuncs.com |
| CoreVersion |
string |
The minor engine version number. |
mm.v6.3.10.1-202207141918 |
| CpuCores |
integer |
Number of CPU cores on the compute node. |
2 |
| CpuCoresPerNode |
integer |
The number of CPU cores per node. Note
This parameter applies only to instances in reserved storage mode. |
0 |
| CreationTime |
string |
Creation time of the instance. |
2022-08-11T09:16:26Z |
| DBInstanceCategory |
string |
The instance edition. Valid values:
|
HighAvailability |
| DBInstanceClass |
string |
Instance type. Note
This parameter applies only to instances in storage reserved mode. |
gpdb.group.segsdx1 |
| DBInstanceClassType |
string |
The instance family. Valid values:
|
x |
| DBInstanceCpuCores |
integer |
Number of CPU cores. |
2 |
| DBInstanceDescription |
string |
Instance description. |
gp-bp13ue79qk8y1**** |
| DBInstanceDiskMBPS |
integer |
Maximum BPS (disk throughput) of the compute group, in Mbps. Note
This parameter applies only to instances in storage-reserved mode. |
0 |
| DBInstanceGroupCount |
string |
The number of compute groups. Note
This parameter applies only to instances in reserved storage mode. |
0 |
| DBInstanceId |
string |
Instance ID. |
gp-bp13ue79qk8y1**** |
| DBInstanceMemory |
integer |
The memory of the compute node. Note
The unit is MB for reserved storage mode, and GB for Serverless and elastic storage modes. |
16 |
| DBInstanceMode |
string |
Resource type of the instance. Valid values:
|
StorageElastic |
| DBInstanceNetType |
string |
This parameter is deprecated and will not return a value. |
null |
| DBInstanceStatus |
string |
Instance status. For more information, see the supplementary description of the DBInstanceStatus parameter. |
Running |
| DBInstanceStorage |
integer |
Maximum storage space per replica, in GB. |
50 |
| DeployMode |
string |
Deployment mode. |
single |
| EncryptionKey |
string |
Encryption Key. Note
This parameter is returned only for instances with disk encryption enabled. |
0d2470df-da7b-4786-b981-************ |
| EncryptionType |
string |
Encryption Type. Valid values:
Note
This parameter is returned only for instances with disk encryption enabled. |
CloudDisk |
| Engine |
string |
Database engine. |
gpdb |
| EngineVersion |
string |
Database version. |
6.0 |
| ExpireTime |
string |
Expiration time of the instance (UTC). Note
The expiration time for a pay-as-you-go instance is |
2999-09-08T16:00:00Z |
| HostType |
string |
Compute group machine type. Valid values:
Note
This parameter applies only to instances in storage reservation mode. |
0 |
| IdleTime |
integer |
Idle release wait time, in seconds. Note
This parameter is returned only for instances in Serverless auto-scheduling mode. |
600 |
| InstanceNetworkType |
string |
The network type of the instance. Valid values:
|
VPC |
| LockMode |
string |
The lock mode. Valid values:
|
Unlock |
| LockReason |
string |
Deprecated. No value is returned. |
null |
| MaintainEndTime |
string |
Maintenance end time. |
22:00Z |
| MaintainStartTime |
string |
Start time of the maintenance window. |
18:00Z |
| MasterCU |
integer |
Master resources. |
4 |
| MasterNodeNum |
integer |
Number of master nodes. |
1 |
| MaxConnections |
integer |
Maximum number of concurrent connections for the instance. Note
This parameter applies only to instances in storage reserved mode. |
500 |
| MemoryPerNode |
integer |
The memory size per replica. For the unit, see the MemoryUnit parameter. Note
This parameter applies only to instances in reserved storage mode. |
0 |
| MemorySize |
integer |
Memory size of the compute node. Note
The unit is MB for reserved storage mode, and GB for Serverless and elastic storage modes. |
16 |
| MemoryUnit |
string |
Memory unit. Note
This parameter applies only to instances in reserved storage mode. |
GB |
| MinorVersion |
string |
Minor engine version. |
6.3.10.1-202207141918 |
| PayType |
string |
The billing type. Valid values:
|
Postpaid |
| Port |
string |
The port number of the instance. |
5432 |
| ProdType |
string |
Product type. |
standard |
| ReadDelayTime |
string |
Deprecated. No value is returned. |
null |
| RegionId |
string |
Region ID. |
cn-hangzhou |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-bp67acfmxazb4p**** |
| RunningTime |
string |
Running duration of the instance. |
4 days 22:58:55 |
| SecurityIPList |
string |
This parameter is deprecated and will not return a value. |
null |
| SegDiskPerformanceLevel |
string |
Performance level (PL). Only PL1 is currently supported. |
PL1 |
| SegNodeNum |
integer |
The number of segment nodes. Note
This parameter applies only to instances in elastic storage mode and Serverless mode with manual scheduling. |
4 |
| SegmentCounts |
integer |
Number of compute groups. Note
This parameter applies only to instances in storage-reserved mode. |
0 |
| ServerlessMode |
string |
Serverless instance mode. Valid values:
Note
This parameter is returned only for Serverless instances. |
Auto |
| ServerlessResource |
integer |
Computing resource threshold, measured in ACUs. Note
This parameter is returned only for instances in Serverless auto-scheduling mode. |
32 |
| StandbyZoneId |
string |
Secondary zone ID. |
cn-hangzhou-i |
| StartTime |
string |
The time when the instance started running. |
2022-08-11T09:26:43Z |
| StoragePerNode |
integer |
Storage size per replica. For the unit, see the StorageUnit parameter. Note
This parameter applies only to instances in reserved storage mode. |
0 |
| StorageSize |
integer |
Bucket size, in GB. |
50 |
| StorageType |
string |
Storage class. Valid values:
Note
This parameter applies only to instances in storage elasticity mode. |
cloud_essd |
| StorageUnit |
string |
Storage unit. Valid values:
Note
This parameter applies only to instances in reserved storage mode. |
GB SSD |
| SupportRestore |
boolean |
Indicates whether backup recovery is supported. Valid values:
|
true |
| Tags |
object |
||
| Tag |
array<object> |
Key-value pairs of tags. |
|
|
object |
Tag details. |
||
| Key |
string |
Tag key. |
test-key |
| Value |
string |
Tag value. |
test-value |
| VSwitchId |
string |
vSwitch ID. |
vsw-bp1cpq8mr64paltkb**** |
| VectorConfigurationStatus |
string |
Indicates whether vector engine optimization is enabled. Valid values:
|
enabled |
| VpcId |
string |
The VPC ID. |
vpc-bp19ame5m1r3oejns**** |
| ZoneId |
string |
Zone ID. |
cn-hangzhou-j |
| SegmentAISpec |
string |
Compute AI node specifications of the instance. If the compute node is not an AI node, an empty value is returned. |
ADB.AIMedium.2 |
| MasterAISpec |
string |
Master AI node specifications of the instance. If the master node is not an AI node, an empty value is returned. |
ADB.AIMedium.2 |
| CacheStorageSize |
string |
Total cache disk size, in GB. |
64 |
| InstanceSpec |
string |
Node specifications of the compute node. |
2C16G |
| GraphEngineStatus |
string |
Indicates whether the graph engine is enabled. Valid values:
|
enabled |
| RequestId |
string |
Request ID. |
5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68 |
Additional description of the DBInstanceStatus parameter
Valid values for the DBInstanceStatus parameter:
-
Creating: Creation in progress.
-
Running: In use.
-
Deleting: Deletion in progress.
-
Rebooting: Restart in progress.
-
DBInstanceClassChanging: Scaling up or down in progress.
-
Transfering: Migration in progress.
-
EngineVersionUpgrading: Version upgrade in progress.
-
TransferingToOtherInstance: Migrating data to another AnalyticDB for PostgreSQL instance.
-
GuardDBInstanceCreating: Creating a disaster recovery instance.
-
Restoring: Backup restoration in progress.
-
Importing: Data import in progress.
-
ImportingFromOtherInstance: Importing data from another AnalyticDB for PostgreSQL instance.
-
DBInstanceNetTypeChangin: Switching between internal and public network types.
-
GuardSwitching: Switchover in progress.
Examples
Success response
JSON format
{
"Items": {
"DBInstanceAttribute": [
{
"AvailabilityValue": "100.0%",
"ConnectionMode": "LVS",
"ConnectionString": "gp-bp13ue79qk8y1****-master.gpdb.rds.aliyuncs.com",
"CoreVersion": "mm.v6.3.10.1-202207141918",
"CpuCores": 2,
"CpuCoresPerNode": 0,
"CreationTime": "2022-08-11T09:16:26Z",
"DBInstanceCategory": "HighAvailability",
"DBInstanceClass": "gpdb.group.segsdx1",
"DBInstanceClassType": "x",
"DBInstanceCpuCores": 2,
"DBInstanceDescription": "gp-bp13ue79qk8y1****",
"DBInstanceDiskMBPS": 0,
"DBInstanceGroupCount": "0",
"DBInstanceId": "gp-bp13ue79qk8y1****",
"DBInstanceMemory": 16,
"DBInstanceMode": "StorageElastic",
"DBInstanceNetType": "null",
"DBInstanceStatus": "Running",
"DBInstanceStorage": 50,
"DeployMode": "single",
"EncryptionKey": "0d2470df-da7b-4786-b981-************",
"EncryptionType": "CloudDisk",
"Engine": "gpdb",
"EngineVersion": "6.0",
"ExpireTime": "2999-09-08T16:00:00Z",
"HostType": "0",
"IdleTime": 600,
"InstanceNetworkType": "VPC",
"LockMode": "Unlock",
"LockReason": "null",
"MaintainEndTime": "22:00Z",
"MaintainStartTime": "18:00Z",
"MasterCU": 4,
"MasterNodeNum": 1,
"MaxConnections": 500,
"MemoryPerNode": 0,
"MemorySize": 16,
"MemoryUnit": "GB",
"MinorVersion": "6.3.10.1-202207141918",
"PayType": "Postpaid",
"Port": "5432",
"ProdType": "standard",
"ReadDelayTime": "null",
"RegionId": "cn-hangzhou",
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"RunningTime": "4 days 22:58:55",
"SecurityIPList": "null",
"SegDiskPerformanceLevel": "PL1",
"SegNodeNum": 4,
"SegmentCounts": 0,
"ServerlessMode": "Auto",
"ServerlessResource": 32,
"StandbyZoneId": "cn-hangzhou-i",
"StartTime": "2022-08-11T09:26:43Z",
"StoragePerNode": 0,
"StorageSize": 50,
"StorageType": "cloud_essd",
"StorageUnit": "GB SSD",
"SupportRestore": true,
"Tags": {
"Tag": [
{
"Key": "test-key",
"Value": "test-value"
}
]
},
"VSwitchId": "vsw-bp1cpq8mr64paltkb****",
"VectorConfigurationStatus": "enabled",
"VpcId": "vpc-bp19ame5m1r3oejns****",
"ZoneId": "cn-hangzhou-j",
"SegmentAISpec": "ADB.AIMedium.2",
"MasterAISpec": "ADB.AIMedium.2",
"CacheStorageSize": "64",
"InstanceSpec": "2C16G",
"GraphEngineStatus": "enabled"
}
]
},
"RequestId": "5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.