Queries cold storage information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeOSSStorage |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp108z124a8o7**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Policy |
string |
The parameters of the tiered storage policy for hot and cold data. |
[{ "currentValue":"0.1", "defaultValue":"0.1", "desc":"Ratio of free disk space. When the ratio exceeds the value of configuration parameter, ClickHouse start to move data to the cold storage", "name":"move_factor", "restart":true, "valueRange":"(0, 1]" },{ "currentValue":"true", "defaultValue":"true", "desc":"Disables merging of data parts on cold storage", "name":"prefer_not_to_merge", "restart":true, "valueRange":"true|false" }] |
| RequestId |
string |
The request ID. |
aadbb456-ebf7-4ed8-9671-fad9f3846ca4 |
| State |
string |
The status of tiered storage for hot and cold data. Valid values:
|
ENABLE |
| ColdStorage |
boolean |
Indicates whether tiered storage for hot and cold data can be enabled. Valid values:
|
true |
| StorageUsage |
string |
The cold storage space used. Unit: GB. |
0.00 |
Examples
Success response
JSON format
{
"Policy": "[{ \"currentValue\":\"0.1\", \"defaultValue\":\"0.1\", \"desc\":\"Ratio of free disk space. When the ratio exceeds the value of configuration parameter, ClickHouse start to move data to the cold storage\", \"name\":\"move_factor\", \"restart\":true, \"valueRange\":\"(0, 1]\" },{ \"currentValue\":\"true\", \"defaultValue\":\"true\", \"desc\":\"Disables merging of data parts on cold storage\", \"name\":\"prefer_not_to_merge\", \"restart\":true, \"valueRange\":\"true|false\" }]",
"RequestId": "aadbb456-ebf7-4ed8-9671-fad9f3846ca4",
"State": "ENABLE",
"ColdStorage": true,
"StorageUsage": "0.00"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
| 503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.