All Products
Search
Document Center

PolarDB:DescribeColdStorageInstance

Last Updated:Oct 22, 2026

Queries cold storage instance information.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribeColdStorageInstance

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

No

The PolarDB cluster ID.

pc-wz9062015ly7526jc

NextToken

string

No

The query token. Set the value to the NextToken value returned from the previous API call. If there are no more queries, do not specify this parameter.

c2FpXzIwMjIwNjI5X2Jhay9zYWlfc3VtbWVyX3RyZWFzdXJlX3Bvb2xfbG9nLkNTVg==

TableName

string

No

The name of the data table.

account_log

DBName

string

No

The name of the database.

test_db

EngineType

string

No

The supported engine types. The return value is the sum of the following engine type values:

  • 1: search engine

  • 2: time series engine

  • 4: wide table engine

  • 8: file engine

Note

For example, if the EngineType value is 15, 15 = 8 + 4 + 2 + 1, which indicates that the instance supports the search engine, time series engine, wide table engine, and file engine. If the EngineType value is 6, 6 = 4 + 2, which indicates that the instance supports the time series engine and wide table engine.

2

RegionId

string

No

The region ID.

Note
  • You can call the DescribeRegions operation to query the region information of all clusters under the target account.

  • If this parameter is left empty, scheduled tasks in all regions under the current account are queried by default.

cn-hangzhou

MaxResults

integer

No

  • If you do not specify the MaxResults parameter, batch query is not required. The value of the MaxResults parameter returned after the API call indicates the total number of list entries.

  • If you specify the MaxResults parameter, batch query is required. The value of MaxResults indicates the number of entries displayed per batch. Valid values: 1 to 100. The value of the MaxResults parameter returned after the API call indicates the number of list entries in the current query batch. Set the MaxResults parameter to 20.

50

ExpireTime

integer

No

The expiration time of the cluster. Note: A specific value is returned only for clusters whose billing method is Prepaid (subscription). For Postpaid (pay-as-you-go) clusters, a null value is returned.

2020-11-14T16:00:00Z

PageNumber

string

No

The page number.

1

PageSize

string

No

The number of entries per page.

1

ObjectType

string

No

The object type. Valid values: TABLE, PARTITION_TABLE, and LOB.

TABLE

Response elements

Element

Type

Description

Example

object

PageRecordCount

integer

The number of records on the current page.

1

RequestId

string

The request ID.

C7A8EA8E-A140-5226-90D7-5BCB304D3DB6

NextToken

string

The query token. Set the value to the NextToken value returned from the previous API call. If there are no more queries, do not specify this parameter.

c2FpXzIwMjIwNjI5X2Jhay9zYWlfc3VtbWVyX3RyZWFzdXJlX3Bvb2xfbG9nLkNTVg==

OssClusterEnabled

string

Specifies whether OSS storage space is enabled. Valid values:

  • true: enabled

  • false: disabled

true

SupportOssCluster

string

Specifies whether the current cluster supports enabling cold storage. For clusters that do not support this feature, the switch is not displayed on the page.

true

ObjectType

string

The object type.

TABLE

MaxResults

integer

The maximum number of data entries to read in this request. Default value: 10.

1000

PageSize

integer

The number of entries per page.

30

PageNumber

integer

The current page number.

1

TotalRecord

integer

The total number of records.

1

Tables

array<object>

The list of cold storage instances.

array<object>

The list of cold storage instances.

OssClusterId

string

The OSS cluster ID.

pc-*****************

Partion

string

The partition of the cold storage instance.

202509

Size

string

The disk size of the cold storage instance. Unit: GiB.

30

DB

string

The name of the database.

test_db

Table

string

The name of the table.

user

TableName

string

The name of the table.

test_table

DBName

string

The name of the database.

test_db

Status

string

The task status.

Running

FieldName

string

The name of the LOB field.

user

ChildObjects

array<object>

The list of child objects.

object

The child object.

ObjectName

string

The object name.

img/1728554006462.png

ObjectType

string

The object type.

File

Size

string

The disk size. Unit: GiB.

10

Status

string

The task status. Valid values:

  • Scheduled: waiting for execution

  • Running: running

  • Succeed: succeeded

  • Cancelling: cancelling

  • Canceled: canceled

  • Waiting: waiting for the preset time

To query multiple statuses, separate them with commas (,). The default value is empty, which indicates that all statuses are selected.

Running

OssClusterInfoList

array<object>

The list of OSS addresses for the cold storage instance.

object

The OSS address of the cold storage instance.

OssClusterId

string

The cold storage instance ID.

pc-*****************

Region

string

The region ID of the region where the task resides.

cn-hangzhou

Size

string

The size of the cold storage table. Unit: GB.

50

CreatedTime

string

The creation time of the cluster. The time follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. The time is displayed in UTC.

2023-05-10T17:01:16Z

Examples

Success response

JSON format

{
  "PageRecordCount": 1,
  "RequestId": "C7A8EA8E-A140-5226-90D7-5BCB304D3DB6",
  "NextToken": "c2FpXzIwMjIwNjI5X2Jhay9zYWlfc3VtbWVyX3RyZWFzdXJlX3Bvb2xfbG9nLkNTVg==",
  "OssClusterEnabled": "true",
  "SupportOssCluster": "true",
  "ObjectType": "TABLE",
  "MaxResults": 1000,
  "PageSize": 30,
  "PageNumber": 1,
  "TotalRecord": 1,
  "Tables": [
    {
      "OssClusterId": "pc-*****************",
      "Partion": "202509",
      "Size": "30",
      "DB": "test_db",
      "Table": "user",
      "TableName": "test_table",
      "DBName": "test_db",
      "Status": "Running",
      "FieldName": "user",
      "ChildObjects": [
        {
          "ObjectName": "img/1728554006462.png",
          "ObjectType": "File",
          "Size": "10",
          "Status": "Running"
        }
      ]
    }
  ],
  "OssClusterInfoList": [
    {
      "OssClusterId": "pc-*****************",
      "Region": "cn-hangzhou",
      "Size": "50",
      "CreatedTime": "2023-05-10T17:01:16Z"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidPageSize.Malformed The specified parameter PageSize is not valid. The specified PageSize parameter is invalid.
400 InvalidPageNumber.Malformed The specified parameter PageNumber is not valid. The specified PageNumber parameter is invalid.
400 Database.ConnectError db instance %s connect failed, please check instance status and database processlist Failed to connect to the database cluster. Check the cluster status and database process list.
400 Account.QueryError Instance %s query account error Failed to query accounts for cluster %s.
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The specified DBClusterId parameter does not exist in the current record.
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid. The specified DBClusterId parameter is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.