Creates a backup policy.
Operation description
ApsaraDB for ClickHouse supports data backup for clusters that run version 20.3, 20.8, or 21.8.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:CreateBackupPolicy |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp108z124a8o7**** |
| PreferredBackupTime |
string |
Yes |
The backup time in UTC. The format is HH:mmZ-HH:mmZ. Example: 00:00Z-01:00Z. This means that data backup can be performed from 00:00 to 01:00 UTC (08:00 to 09:00 UTC+8). |
10:00Z-11:00Z |
| PreferredBackupPeriod |
string |
Yes |
The backup cycle. If you specify multiple days, separate them with commas. Valid values:
|
Monday,Friday |
| BackupRetentionPeriod |
string |
No |
The backup retention period in days. The value must be an integer from 7 to 730. The default value is 7. |
8 |
| RegionId |
string |
No |
The region ID. Call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F5178C10-1407-4987-9133-DE4DC9119F75 |
Examples
Success response
JSON format
{
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.