All Products
Search
Document Center

PolarDB:DescribeDBClusterAttribute

最終更新日:Dec 20, 2024
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.

Queries information about a PolarDB cluster.

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:
    • The required resource types are displayed in bold characters.
    • 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
polardb:DescribeDBClusterAttributeget
*DBCluster
acs:polardb:{#regionId}:{#accountId}:dbcluster/{#DbClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

Cluster ID.

Note You can view detailed information about all clusters under your account, including the cluster ID, through the DescribeDBClusters interface.
pc-*****************
DescribeTypestringNo

Whether to obtain information about AI-related nodes.

AI

Response parameters

ParameterTypeDescriptionExample
object
DeletionLockinteger

Lock status for cluster deletion, with values as follows:

  • 0: Unlocked, cluster can be deleted.
  • 1: Locked, cluster cannot be deleted.
0
Categorystring

Product Series, with values as follows:

  • Normal: Cluster Edition
  • Basic: Single Node
  • Archive: High Compression Engine (X-Engine)
  • NormalMultimaster: Multi-Master Cluster Edition
  • SENormal: Standard Edition
Note
  • PolarDB PostgreSQL version 11 does not support single-node.
  • PolarDB MySQL versions 8.0 and 5.7, and PolarDB PostgreSQL version 14 support the Standard Edition.
  • PolarDB MySQL version 8.0 supports High Compression Engine (X-Engine) and Multi-Master Cluster Edition.
  • Normal
    ResourceGroupIdstring

    Resource group ID.

    rg-***************
    DataLevel1BackupChainSizelong

    Total size of Level 1 backups (snapshots), in bytes.

    74448896
    DBClusterIdstring

    Cluster ID.

    pc-*****************
    DBTypestring

    Database engine type.

    MySQL
    DBClusterNetworkTypestring

    Network type of the cluster.

    VPC
    IsLatestVersionboolean

    Indicates whether it is the latest kernel version. Values are as follows:

    • true: Yes

    • false: No

    false
    HasCompleteStandbyResboolean

    Whether to replenish resources for the new primary after cross-AZ switch. Values are as follows:

    • true: Yes
    • false: No
    false
    HotStandbyClusterstring

    Whether to enable storage hot backup cluster (and Standby compute nodes). Values are as follows:

    • StandbyClusterON: Enable storage hot backup/Enable storage hot backup and Standby compute nodes.
    • StandbyClusterOFF: Disable storage hot backup/Disable storage hot backup and Standby compute nodes.
    StandbyClusterON
    DataSyncModestring

    Data replication relationship mode. Values are as follows:

    • AsyncSync: Asynchronous
    • SemiSync: Semi-synchronous
    AsyncSync
    StandbyHAModestring

    Cross-AZ disaster recovery mode. Values are as follows:

    • ON: Enable cross-AZ disaster recovery mode.
    • OFF: Disable cross-AZ disaster recovery mode.
    • 0: Customer drill mode.
    OFF
    CompressStorageModestring

    Whether storage compression is enabled. Values are as follows:

    • ON: Enabled
    • OFF: Disabled
    ON
    StorageMaxlong

    The maximum storage capacity of the current cluster specification, in bytes.

    10995116277760
    DBVersionstring

    Database engine version.

    8.0
    DBNodesarray<object>

    The information about the nodes.

    DBNodeobject
    CreationTimestring

    Node creation time.

    2020-03-23T21:35:43Z
    FailoverPriorityinteger

    Failover priority. Each node has a failover priority, determining the likelihood of being elected as the primary node during a failover. A higher value indicates a higher priority. Range: 1 to 15.

    1
    MaxIOPSinteger

    Maximum number of I/O requests, that is, IOPS.

    32000
    DBNodeClassstring

    Node specification.

    polar.mysql.x4.large
    CpuCoresstring

    Number of CPU cores for the node.

    2
    MemorySizestring

    Node memory size, in MB.

    8192
    DBNodeRolestring

    Node role, with possible values as follows:

    • Writer: Primary node.
    • Reader: Read-only node.
    Reader
    ZoneIdstring

    Availability zone ID.

    cn-hangzhou-i
    MaxConnectionsinteger

    Maximum concurrent connections of the cluster.

    8000
    DBNodeStatusstring

    Node status, with possible values as follows:

    • Creating: Creating
    • Running: Running
    • Deleting: Deleting
    • Rebooting: Rebooting
    • DBNodeCreating: Adding node
    • DBNodeDeleting: Removing node
    • ClassChanging: Modifying node specification
    • NetAddressCreating: Creating network connection
    • NetAddressDeleting: Deleting network connection
    • NetAddressModifying: Modifying network connection
    • MinorVersionUpgrading: Upgrading minor version
    • Maintaining: Instance maintenance
    • Switching: Switching
    Running
    DBNodeIdstring

    Node ID.

    pi-****************
    ImciSwitchstring

    Whether columnar index is enabled. Possible values are:

    • ON: Enabled
    • OFF: Disabled
    ON
    HotReplicaModestring

    Whether hot standby is enabled. Possible values are:

    • ON: Enabled
    • OFF: Disabled
    ON
    AddedCpuCoresstring

    Number of CPU cores for second-level elastic scaling.

    6
    MasterIdstring

    Primary node ID of the multi-master architecture cluster edition.

    pi-bp18z52akld3*****
    SccModestring

    Whether the node has the global consistency (high-performance mode) feature enabled. Possible values are:

    • ON: Enabled

    • OFF: Disabled

    ON
    ServerWeightstring

    Routing weight. Range: 1~100. Default is 1.

    1
    ServerlessTypestring

    Serverless type. Possible values include:

    • AgileServerless: Agile
    • SteadyServerless: Steady
    Note This parameter is only supported by Serverless clusters.
    AgileServerless
    SubClusterstring

    Identifies whether the node is in the primary or standby availability zone, primarily used in resource mirroring scenarios. Values include:

    • Primary: Primary Availability Zone
    • Standby: Standby Availability Zone
    Primary
    RemoteMemorySizestring

    Remote memory size, in MB.

    3072
    Orcastring

    Orca feature, valid values are:

    • on: enabled
    • off: disabled
    off
    MirrorInsNamestring

    The name of the hot standby compute node corresponding to the node when the hot standby storage and compute clusters feature is enabled.

    pi-bp18z52mirror*****
    ZoneIdsstring

    Availability Zone IDs.

    cn-hangzhou-i,cn-hangzhou-g
    MaintainTimestring

    The maintenance window for the cluster, formatted as HH:mmZ-HH:mmZ (UTC time). For example, 16:00Z-17:00Z indicates that routine maintenance can be performed from 0:00 to 1:00 (UTC+08:00).

    18:00Z-19:00Z
    Enginestring

    Cluster engine.

    POLARDB
    Tagsarray<object>

    Details of tags.

    Tagobject
    Keystring

    Tag key.

    test
    Valuestring

    Tag value.

    MySQL
    RequestIdstring

    Request ID.

    074467EF-86B9-4C23-ACBF-E9B81A******
    VPCIdstring

    VPC ID.

    vpc-*******************
    DBClusterStatusstring

    Cluster status. For the full list of values, refer to Cluster Status Table.

    Running
    VSwitchIdstring

    VSwitch ID.

    vsw-*********************
    DBClusterDescriptionstring

    Cluster description.

    test
    Expiredstring

    Whether the cluster has expired.

    Note This parameter is only supported for clusters with Prepaid (Subscription) payment methods.
    false
    PayTypestring

    Payment type. Possible values are:

    • Postpaid: Pay-As-You-Go
    • Prepaid: Prepaid (Subscription).
    Prepaid
    StoragePayTypestring

    Storage billing type. Valid values are as follows:

    • Postpaid: Pay-as-you-go (by capacity).
    • Prepaid: Subscription (by space).
    Prepaid
    LockModestring

    Lock mode. Possible values are as follows:

    • Unlock: Unlocked.
    • ManualLock: Manually triggered lock.
    • LockByExpiration: Automatic cluster lock upon expiration.
    Unlock
    StorageUsedlong

    Amount of used storage space, in bytes.

    3012558848
    CompressStorageUsedlong

    Compressed storage data size.

    Note This parameter is supported only when the cluster's storage compression feature is enabled.
    15529410560
    StorageSpacelong

    Storage space for pay-by-space (subscription) billing. Unit: Byte.

    50
    DBVersionStatusstring

    The status of the minor version. Valid values:

    • Stable: The minor version is stable.
    • Old: The minor version is outdated. We recommend that you update it to the latest version.
    • HighRisk: The minor version has critical defects. We recommend that you immediately update it to the latest version.
    • Beta: The minor version is a Beta version.
    Note For information about how to update the minor version, see Minor version update.
    Stable
    CreationTimestring

    Cluster creation time.

    2020-08-14T05:58:42Z
    SQLSizelong

    Storage amount of SQL, in bytes. If the value is -1, it indicates no data.

    0
    InodeTotallong

    Maximum number of inodes in the file system.

    6,291,456
    InodeUsedlong

    Current inode usage.

    4,194,304
    BlktagTotallong

    Maximum number of blktags in the file system.

    7,864,320
    BlktagUsedlong

    Current blktag usage.

    5,242,880
    RegionIdstring

    Region ID.

    cn-hangzhou
    ExpireTimestring

    Cluster expiration time.

    Note Only clusters with Prepaid (subscription) payment methods return specific parameter values; Postpaid (pay-as-you-go) clusters return empty values.
    2020-11-14T16:00:00Z
    SubCategorystring

    Specification type of compute nodes, with possible values as follows:

    • Exclusive: Dedicated specification
    • General: General-purpose specification
    Note This parameter is supported only for PolarDB MySQL Edition with the product series set to Cluster Edition.
    Exclusive
    IsProxyLatestVersionboolean

    Indicates whether it is the latest version of the database proxy, with possible values as follows:

    • true: Yes
    • false: No
    false
    StorageTypestring

    Storage type, with a fixed value of HighPerformance.

    HighPerformance
    ServerlessTypestring

    Serverless type. Valid values are as follows:

    • AgileServerless: Agile - SteadyServerless: Stable
    AgileServerless
    StrictConsistencystring

    Indicates whether multi-AZ data strong consistency is enabled for the cluster. The value ranges are as follows:

    • ON: Indicates that multi-AZ data strong consistency is enabled, applicable to the Standard 3AZ scenario.
    • OFF: Indicates that multi-AZ data strong consistency is not enabled.
    ON
    ProxyCpuCoresstring

    Number of CPU cores for the database proxy.

    4
    ProxyStandardCpuCoresstring

    Standard configuration CPU cores for the database proxy.

    2
    ProxyTypestring

    Database proxy types, with the following values:

    • Exclusive: Enterprise Exclusive Edition
    • General: Enterprise General Purpose Edition
    Exclusive
    ProxyStatusstring

    Status of the database proxy. Possible values include:

    • Creating: Creating
    • Running: Running
    • Deleting: Releasing
    • Rebooting: Restarting
    • DBNodeCreating: Adding nodes
    • DBNodeDeleting: Deleting nodes
    • ClassChanging: Changing node specifications
    • NetAddressCreating: Creating network connections
    • NetAddressDeleting: Deleting network connections
    • NetAddressModifying: Modifying network connections
    • Deleted: Released
    Running
    ProxyServerlessTypestring

    Serverless type for the database proxy. Currently, the value is fixed to AgileServerless.

    AgileServerless
    Architecturestring

    CPU architecture. Available options are:

    • X86
    • ARM
    X86
    AiTypestring

    Types of AI nodes. Values include:

    • SearchNode: Search node.
    • DLNode: AI node.
    DLNode
    ProvisionedIopsstring

    Describes the preconfigured read and write IOPS for ESSD AutoPL cloud disks. Possible values: 0 to min{50,000, 1000capacity - baseline performance}.
    Baseline performance = min{1,800 + 50
    capacity, 50000}.
    Note: This parameter is supported only when StorageType is ESSDAUTOPL.

    2500
    AiCreatingTimestring

    Start time for free AI activation

    2024-03-13T01:20:28Z
    SupportInstantSwitchWithImcistring

    Indicates whether queries based on In-Memory Column Indexes (IMCIs) are supported during and after a failover with hot replica.

    ON
    Orcastring

    Orca function with possible values as follows:

    • on: Enabled

    • off: Disabled

    ON
    SourceDBClusterstring

    Source cluster ID.

    Note Clusters restored from backup sets or specific points in time after June 1, 2024, support this parameter.

    pc-pz51ziv48317b2880
    RestoreTypestring

    Cluster recovery method, with possible values:

    • RestoreByTime: Restore from a time point based on primary backup. * RestoreByBackupSet: Restore from a backup set based on primary backup. * RestoreByTimeOss: Restore from a time point based on secondary backup. * RestoreByBackupSetOss: Restore from a backup set based on secondary backup. * CloneFromSourceCluster: Clone from the source cluster.
      Note This parameter is only supported for clusters restored from a backup set or time point after June 1, 2024.
    RestoreByTime
    RestoreDataPointstring

    If RestoreType is RestoreByTime or RestoreByTimeOss, this value represents the recovery time point. If RestoreType is RestoreByBackupSet or RestoreByBackupSetOss, this value indicates the ID of the backup set on which the recovery is based.

    Note Only clusters restored from a backup set or time point after June 1, 2024, support this parameter.

    2179639137
    SourceRegionIdstring

    The region ID of the source cluster.

    Note This parameter is returned only if the source cluster ID exists.
    cn-beijing
    ImciAutoIndexstring

    Indicates whether the automatic IMCI-based query acceleration feature is enabled. Valid values:

    • ON: enabled
    • OFF: disabled
    OFF

    description

    Examples

    Sample success responses

    JSONformat

    {
      "DeletionLock": 0,
      "Category": "Normal",
      "ResourceGroupId": "rg-***************",
      "DataLevel1BackupChainSize": 74448896,
      "DBClusterId": "pc-*****************",
      "DBType": "MySQL",
      "DBClusterNetworkType": "VPC",
      "IsLatestVersion": false,
      "HasCompleteStandbyRes": false,
      "HotStandbyCluster": "StandbyClusterON",
      "DataSyncMode": "AsyncSync",
      "StandbyHAMode": "OFF",
      "CompressStorageMode": "ON",
      "StorageMax": 10995116277760,
      "DBVersion": "8.0",
      "DBNodes": [
        {
          "CreationTime": "2020-03-23T21:35:43Z",
          "FailoverPriority": 1,
          "MaxIOPS": 32000,
          "DBNodeClass": "polar.mysql.x4.large",
          "CpuCores": "2",
          "MemorySize": "8192",
          "DBNodeRole": "Reader",
          "ZoneId": "cn-hangzhou-i",
          "MaxConnections": 8000,
          "DBNodeStatus": "Running",
          "DBNodeId": "pi-****************",
          "ImciSwitch": "ON",
          "HotReplicaMode": "ON",
          "AddedCpuCores": "6",
          "MasterId": "pi-bp18z52akld3*****",
          "SccMode": "ON",
          "ServerWeight": "1",
          "ServerlessType": "AgileServerless",
          "SubCluster": "Primary",
          "RemoteMemorySize": "3072",
          "Orca": "off",
          "MirrorInsName": "pi-bp18z52mirror*****",
          "MultiMasterLocalStandby": "",
          "MultiMasterPrimaryNode": "",
          "DBNodeDescription": ""
        }
      ],
      "ZoneIds": "cn-hangzhou-i,cn-hangzhou-g",
      "MaintainTime": "18:00Z-19:00Z",
      "Engine": "POLARDB",
      "Tags": [
        {
          "Key": "test",
          "Value": "MySQL"
        }
      ],
      "RequestId": "074467EF-86B9-4C23-ACBF-E9B81A******",
      "VPCId": "vpc-*******************",
      "DBClusterStatus": "Running",
      "VSwitchId": "vsw-*********************",
      "DBClusterDescription": "test",
      "Expired": "false",
      "PayType": "Prepaid",
      "StoragePayType": "Prepaid",
      "LockMode": "Unlock",
      "StorageUsed": 3012558848,
      "CompressStorageUsed": 15529410560,
      "StorageSpace": 50,
      "DBVersionStatus": "Stable",
      "CreationTime": "2020-08-14T05:58:42Z",
      "SQLSize": 0,
      "InodeTotal": 0,
      "InodeUsed": 0,
      "BlktagTotal": 0,
      "BlktagUsed": 0,
      "RegionId": "cn-hangzhou",
      "ExpireTime": "2020-11-14T16:00:00Z",
      "SubCategory": "Exclusive",
      "IsProxyLatestVersion": false,
      "StorageType": "HighPerformance",
      "ServerlessType": "AgileServerless",
      "StrictConsistency": "ON",
      "ProxyCpuCores": "4",
      "ProxyStandardCpuCores": "2",
      "ProxyType": "Exclusive",
      "ProxyStatus": "Running",
      "ProxyServerlessType": "AgileServerless",
      "Architecture": "X86",
      "AiType": "DLNode",
      "ProvisionedIops": "2500",
      "AiCreatingTime": "2024-03-13T01:20:28Z",
      "SupportInstantSwitchWithImci": "ON",
      "Orca": "ON",
      "SourceDBCluster": "pc-pz51ziv48317b2880",
      "RestoreType": "RestoreByTime",
      "RestoreDataPoint": "2179639137",
      "SourceRegionId": "cn-beijing",
      "ImciAutoIndex": "OFF",
      "BurstingEnabled": ""
    }

    Error codes

    HTTP status codeError codeError messageDescription
    400InvalidDBClusterId.MalformedThe specified parameter DBClusterId is not valid.The specified DBClusterId parameter is invalid.
    403Forbidden.RAMUser not authorized to operate on the specified resource, or this API does not support RAM.-
    404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist in the current record.

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

    Change history

    Change timeSummary of changesOperation
    2024-08-20The Error code has changed. The response structure of the API has changedView Change Details
    2024-07-30The Error code has changed. The response structure of the API has changedView Change Details
    2024-06-06The Error code has changed. The response structure of the API has changedView Change Details
    2024-04-18The Error code has changed. The response structure of the API has changedView Change Details
    2024-02-22The Error code has changed. The response structure of the API has changedView Change Details
    2023-12-26The Error code has changed. The response structure of the API has changedView Change Details
    2023-12-07The Error code has changed. The response structure of the API has changedView Change Details
    2023-11-06The Error code has changed. The response structure of the API has changedView Change Details
    2023-10-26The Error code has changed. The response structure of the API has changedView Change Details
    2023-10-12The Error code has changed. The response structure of the API has changedView Change Details
    2023-09-12The Error code has changed. The response structure of the API has changedView Change Details
    2023-08-31The Error code has changed. The response structure of the API has changedView Change Details
    2023-07-06The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
    2023-06-12The Error code has changedView Change Details
    2023-04-11The Error code has changed. The response structure of the API has changedView Change Details
    2023-03-28API Description Update. The Error code has changed. The response structure of the API has changedView Change Details
    2022-11-02The Error code has changed. The response structure of the API has changedView Change Details
    2022-06-02The Error code has changed. The response structure of the API has changedView Change Details
    2021-12-07The Error code has changed. The response structure of the API has changedView Change Details
    2021-12-07The Error code has changed. The response structure of the API has changedView Change Details