Queries cold storage instance information.
Try it now
Test
RAM authorization
|
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:
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
|
cn-hangzhou |
| MaxResults |
integer |
No |
|
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 |
| 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:
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.