All Products
Search
Document Center

AnalyticDB:DescribeDBInstanceAttribute

Last Updated:Mar 10, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Query detailed information about the instance.

Operation description

Usage Instructions

This interface is generally used to view information such as the specifications, network type, and instance status of AnalyticDB for PostgreSQL instances.

QPS Limitation

The default single-user QPS limit for this interface is 1000 times/second. If the limit is exceeded, API calls will be throttled, which may affect your business. Please use it reasonably.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
gpdb:DescribeDBInstanceAttributeget
*DBInstance
acs:gpdb:*:{#accountId}:dbinstance/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringNo

This parameter is deprecated and should not be passed.

null
DBInstanceIdstringYes

Instance ID.

Note You can call the DescribeDBInstances interface to view the instance IDs of all AnalyticDB for PostgreSQL instances in the target region.
gp-bp13ue79qk8y1****

Response parameters

ParameterTypeDescriptionExample
object
Itemsarray<object>

The queried instance.

DBInstanceAttributeobject

The queried instance.

AvailabilityValuestring

Queries the current instance availability status, in percentage (%).

Note This parameter is only applicable to instances in the storage reserved mode.
100.0%
ConnectionModestring

Access mode, with the following values:

  • Performance: Standard access mode.
  • Safty: High-security access mode.
  • LVS: LVS link mode.
LVS
ConnectionStringstring

Instance connection address.

gp-bp13ue79qk8y1****-master.gpdb.rds.aliyuncs.com
CoreVersionstring

Minor version number of the kernel.

mm.v6.3.10.1-202207141918
CpuCoresinteger

Number of CPU cores for the compute node, unit: Core.

2
CpuCoresPerNodeinteger

Number of CPU cores per node.

Note This parameter is only applicable to instances in the storage reserved mode.
0
CreationTimestring

Instance creation time.

2022-08-11T09:16:26Z
DBInstanceCategorystring

Instance series, with the following values:

  • Basic: Basic Edition.
  • HighAvailability: High Availability Edition.
HighAvailability
DBInstanceClassstring

Instance specification.

Note This parameter is only applicable to reserved storage mode instances.
gpdb.group.segsdx1
DBInstanceClassTypestring

Instance family, with the following values:

  • s: Shared type.
  • x: General type.
  • d: Dedicated package.
  • h: Dedicated physical machine.
x
DBInstanceCpuCoresinteger

Number of CPU cores.

2
DBInstanceDescriptionstring

Instance description.

gp-bp13ue79qk8y1****
DBInstanceDiskMBPSlong

Maximum BPS (disk throughput) of the compute group, in Mbps.

Note This parameter is only applicable to reserved storage mode instances.
0
DBInstanceGroupCountstring

Number of compute groups.

Note This parameter is only applicable to reserved storage mode instances.
0
DBInstanceIdstring

Instance ID.

gp-bp13ue79qk8y1****
DBInstanceMemorylong

Memory of the compute node.

Note The unit for storage-reserved mode is MB; for Serverless and storage-elastic modes, it is GB.
16
DBInstanceModestring

Instance resource type, with the following values:

  • Serverless: Serverless mode.
  • StorageElastic: Storage elastic mode.
  • Classic: Storage reserved mode.
StorageElastic
DBInstanceNetTypestring

This parameter is deprecated and will not return any value.

null
DBInstanceStatusstring

Instance status. For more details, see the supplementary explanation of the DBInstanceStatus parameter.

Running
DBInstanceStoragelong

Maximum storage space of a single replica, in GB.

50
DeployModestring

The deployment mode.

single
EncryptionKeystring

Encryption key.

Note This parameter is returned only for instances with disk encryption enabled.
0d2470df-da7b-4786-b981-************
EncryptionTypestring

Encryption type, with the following value:

  • CloudDisk: Cloud disk encryption.
Note This parameter is returned only for instances with cloud disk encryption.
CloudDisk
Enginestring

Database engine.

gpdb
EngineVersionstring

Database version.

6.0
ExpireTimestring

Instance expiration time (in UTC).

Note The expiration time for pay-as-you-go instances is 2999-09-08T16:00:00Z.
2999-09-08T16:00:00Z
HostTypestring

Compute group machine type, with the following values:

  • 0: SSD
  • 1: HDD
Note This parameter applies only to storage-reserved mode instances.
0
IdleTimeinteger

Idle release waiting time. Unit: seconds.

Note This parameter is returned only for instances in the Serverless automatic scheduling mode.
600
InstanceNetworkTypestring

Instance network type, with the following values:

  • Classic: Classic network.
  • VPC: VPC network.
VPC
LockModestring

Lock mode, with the following values:

  • Unlock: Normal.
  • ManualLock: Manually triggered lock.
  • LockByExpiration: Automatically locked when the instance expires.
  • LockByRestoration: Automatically locked before the instance rolls back.
  • LockByDiskQuota: Automatically locked when the instance space is full.
Unlock
LockReasonstring

This parameter is deprecated and will not return any value.

null
MaintainEndTimestring

Maintenance end time.

22:00Z
MaintainStartTimestring

Maintenance start time.

18:00Z
MasterCUinteger

Master resources.

4
MasterNodeNuminteger

Number of Master nodes.

1
MaxConnectionsinteger

Maximum number of concurrent connections for the instance.

Note This parameter is only applicable to reserved storage mode instances.
500
MemoryPerNodeinteger

Memory size per replica, see the MemoryUnit parameter for the unit.

Note This parameter is only applicable to instances in the storage reserved mode.
0
MemorySizelong

Memory size of the compute node.

Note The unit is MB for the storage reserved mode; GB for Serverless and storage elastic modes.
16
MemoryUnitstring

Memory unit.

Note This parameter is only applicable to reserved storage mode instances.
GB
MinorVersionstring

Minor version of the kernel.

6.3.10.1-202207141918
PayTypestring

Billing type, with the following values:

  • Postpaid: Pay-as-you-go.
  • Prepaid: Subscription.
Postpaid
Portstring

Instance port number.

5432
ProdTypestring

The service type.

standard
ReadDelayTimestring

This parameter has been deprecated and will not return a value.

null
RegionIdstring

Region ID.

cn-hangzhou
ResourceGroupIdstring

ID of the resource group where the instance is located.

rg-bp67acfmxazb4p****
RunningTimestring

Instance running time.

4 days 22:58:55
SecurityIPListstring

This parameter is deprecated and will not return any value.

null
SegDiskPerformanceLevelstring

Performance Level (PL), currently only PL1 is supported.

PL1
SegNodeNuminteger

Number of Segment nodes.

Note This parameter applies only to instances in the storage elastic mode and Serverless manual scheduling mode.
4
SegmentCountsinteger

Number of compute groups.

Note This parameter applies only to storage-reserved mode instances.
0
ServerlessModestring

The mode of the Serverless instance, with the following values:

  • Manual: Manual scheduling.
  • Auto: Automatic scheduling.
Note This parameter is returned only for Serverless mode instances.
Auto
ServerlessResourceinteger

Compute resource threshold. Unit: ACU.

Note This parameter is returned only for instances in the Serverless automatic scheduling mode.
32
StandbyZoneIdstring

The secondary zone ID.

cn-hangzhou-i
StartTimestring

The time when the instance started running.

2022-08-11T09:26:43Z
StoragePerNodeinteger

Storage size per replica, see the StorageUnit parameter for units.

Note This parameter applies only to storage-reserved mode instances.
0
StorageSizelong

Storage space size, unit: GB.

50
StorageTypestring

Storage type, with the following values:

  • cloud_essd: ESSD cloud disk.
  • cloud_efficiency: Efficient cloud disk.
Note This parameter is only applicable to instances in the storage elastic mode.
cloud_essd
StorageUnitstring

Storage unit, with the following values:

  • GB SSD
  • TB SSD
  • GB HDD
Note This parameter is only applicable to instances in the storage reserved mode.
GB SSD
SupportRestoreboolean

Indicates whether backup recovery is supported, with the following values:

  • true: Backup recovery is supported.
  • false: Backup recovery is not supported.
true
Tagsarray<object>

Tag key-value pairs.

Tagobject

The details of the tags are as follows.

Keystring

Tag key.

test-key
Valuestring

Tag value.

test-value
VSwitchIdstring

vSwitch ID.

vsw-bp1cpq8mr64paltkb****
VectorConfigurationStatusstring

Indicates whether vector engine optimization is enabled. The values are as follows:

  • enabled: Indicates that vector engine optimization is enabled.
  • disabled: Indicates that vector engine optimization is disabled.
enabled
VpcIdstring

VPC ID.

vpc-bp19ame5m1r3oejns****
ZoneIdstring

Zone ID.

cn-hangzhou-j
SegmentAISpecstring

The specifications of AI compute node resources of the instance. If the compute nodes of the instance are not AI nodes, null is returned.

ADB.AIMedium.2
MasterAISpecstring

The specifications of AI coordinator node resources of the instance. If the coordinator nodes of the instance are not AI nodes, null is returned.

ADB.AIMedium.2
RequestIdstring

Request ID.

5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68

DBInstanceStatus Parameter Supplement

The values of DBInstanceStatus are as follows:

  • Creating: Creating.
  • Running: In use.
  • Deleting: Deleting.
  • Rebooting: Rebooting.
  • DBInstanceClassChanging: Scaling up or down.
  • Transfering: Migrating.
  • EngineVersionUpgrading: Upgrading the engine version.
  • TransferingToOtherInstance: Transferring data to another AnalyticDB for PostgreSQL.
  • GuardDBInstanceCreating: Creating a disaster recovery instance.
  • Restoring: Restoring from a backup.
  • Importing: Importing data.
  • ImportingFromOtherInstance: Importing data from another AnalyticDB for PostgreSQL instance.
  • DBInstanceNetTypeChangin: Switching between public and private networks.
  • GuardSwitching: Disaster recovery switching.

Examples

Sample success responses

JSONformat

{
  "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"
      }
    ]
  },
  "RequestId": "5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-10-11The response structure of the API has changedView Change Details
2024-01-04The response structure of the API has changedView Change Details
2023-08-17The response structure of the API has changedView Change Details
2023-05-23The response structure of the API has changedView Change Details