UpdateBackupPlan
Updates a backup plan.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:UpdateBackupPlan |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PlanId |
string |
Yes |
The ID of the backup plan. |
plan-20211***735 |
| PlanName |
string |
No |
The name of the backup plan. |
planname |
| Schedule |
string |
No |
The backup policy. Valid format:
|
I|1602673264|P1D |
| Retention |
integer |
No |
The retention period of backups in days. The minimum value is 1. |
7 |
| Prefix |
string |
No |
The backup prefix. This parameter is required only when SourceType is set to OSS. After this parameter is specified, only objects whose names match the prefix are backed up. |
oss-prefix |
| VaultId |
string |
No |
The ID of the backup vault. |
v-0006******q |
| Detail |
object |
No |
The details of the ECS instance backup. The value is a JSON string.
|
{\"EnableFsFreeze\":true,\"appConsistent\":false,\"postScriptPath\":\"\",\"preScriptPath\":\"\",\"snapshotGroup\":true,\"timeoutInSeconds\":60} |
| SourceType |
string |
No |
The type of the data source. Valid values:
|
ECS_FILE |
| SpeedLimit |
string |
No |
The throttling for backup traffic. This parameter is required only when SourceType is set to ECS_FILE. Throttling helps you control the traffic of backup files during peak hours to prevent impacts on normal business. The format is
|
0:24:5120 |
| Include |
string |
No |
The paths to be backed up. All files in the specified paths are backed up. This parameter is required only when SourceType is set to ECS_FILE. The value can be up to 255 characters in length. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| Exclude |
string |
No |
The paths to be excluded from backup. All files in the specified paths are not backed up. This parameter is required only when SourceType is set to ECS_FILE. The value can be up to 255 characters in length. |
["/var", "/proc"] |
| Options |
string |
No |
Specifies whether to use Volume Shadow Copy Service (VSS) to define backup paths for Windows. This parameter is required only when SourceType is set to ECS_FILE.
|
{"UseVSS":false} |
| UpdatePaths |
boolean |
No |
Specifies whether to update the source paths when the source paths are empty. Valid values:
|
false |
| Path |
array |
No |
The backup path. |
|
|
string |
No |
The source path. The value can be up to 65,536 characters in length. The source path must meet the following rules:
|
["/home"] |
|
| Rule |
array<object> |
No |
The rules of the backup plan. |
|
|
object |
No |
|||
| DestinationRetention |
integer |
No |
The retention period of geo-redundant backups in days. |
7 |
| Schedule |
string |
No |
The backup policy. Valid format: I|{startTime}|{interval}. This format specifies that a backup job is executed at an interval of {interval} starting from {startTime}. Backup jobs for past time are not executed. If the previous backup job is not completed, the next backup job is not triggered. For example, I|1631685600|P1D specifies that a backup is performed every day starting from 2021-09-15 14:00:00. startTime: The start time of the backup. The value is a UNIX timestamp in seconds. interval: The ISO 8601 time interval. For example, PT1H specifies an interval of one hour. P1D specifies an interval of one day. |
I|1631685600|P1D |
| Disabled |
boolean |
No |
Specifies whether the policy is disabled. |
false |
| Retention |
integer |
No |
The retention period of backups in days. The minimum value is 1. |
7 |
| DoCopy |
boolean |
No |
Specifies whether to enable cross-region replication. |
false |
| DestinationRegionId |
string |
No |
The ID of the destination region for geo-redundant backups. |
cn-shanghai |
| RuleName |
string |
No |
The policy name. |
rule-test-name |
| BackupType |
string |
No |
The backup type. Valid value: COMPLETE, which specifies a full backup. |
COMPLETE |
| OtsDetail | OtsDetail |
No |
The details of the Tablestore instance. |
|
| KeepLatestSnapshots |
integer |
No |
Specifies whether to retain at least one backup version. Valid values:
|
1 |
| ChangeListPath |
string |
No |
The configuration of the incremental file synchronization list. This parameter is required only for synchronization. |
{"dataSourceId": "ds-123456789", "path": "/changelist"} |
| Edition |
string |
No |
The edition type. Valid values: BASIC and STANDARD. Default value: STANDARD. |
STANDARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The HTTP status code. A value of 200 indicates that the request is successful. |
200 |
| Message |
string |
The returned message. If the request is successful, "successful" is returned. If an error occurs, the corresponding error message is returned. |
successful |
| RequestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.