Updates the association between a backup policy and a data source.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:UpdatePolicyBinding |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
string |
Yes |
The ID of the backup policy. |
po-000************ky9 |
| DataSourceId |
string |
Yes |
The ID of the data source. |
i-bp1************dtv |
| SourceType |
string |
Yes |
The type of the data source. Valid value:
|
UDM_ECS |
| PolicyBindingDescription |
string |
No |
The description of the policy binding. |
po-000************5xx-i-2ze************nw4 |
| Disabled |
boolean |
No |
Specifies whether to disable the backup policy for the data source.
|
true |
| Source |
string |
No |
This parameter has different meanings based on the value of SourceType.
|
backup/ |
| Include |
string |
No |
This parameter is available only if you set SourceType to ECS_FILE, File, NAS, COMMON_NAS, or COMMON_FILE_SYSTEM. This parameter specifies the file types to be backed up. All files of the specified types are backed up. The value can be up to 255 characters in length. |
[\"*.doc\",\"*.xltm\"] |
| Exclude |
string |
No |
This parameter is required when SourceType is set to ECS_FILE, File, NAS, COMMON_NAS, or COMMON_FILE_SYSTEM. It specifies the file types to include in the backup. The value can be up to 255 characters in length. |
[\"*.doc\",\"*.xltm\"] |
| SpeedLimit |
string |
No |
This parameter is required only if you set SourceType to ECS_FILE or File. This parameter specifies the throttling rules for backups. The format is
|
0:24:5120 |
| AdvancedOptions |
object |
No |
The advanced options. |
|
| UdmDetail |
object |
No |
The details of the ECS instance backup. |
|
| ExcludeDiskIdList |
array |
No |
The list of cloud disk IDs that do not need to be protected. This parameter is ignored when DiskIdList is not empty. |
|
|
string |
No |
The ID of a cloud disk that does not need to be protected. |
d-bp1************apo |
|
| DiskIdList |
array |
No |
The list of cloud disk IDs that need to be protected. If you want to protect all cloud disks, leave this parameter empty. |
|
|
string |
No |
The ID of a cloud disk that needs to be protected. |
d-bp1************apo |
|
| SnapshotGroup |
boolean |
No |
Specifies whether to create a snapshot-consistent group. You can create a snapshot-consistent group only if all disk types are Enhanced SSDs (ESSDs). |
true |
| AppConsistent |
boolean |
No |
Specifies whether to enable application consistency. You can enable application consistency only if all disk types are ESSDs. |
false |
| RamRoleName |
string |
No |
This parameter is required only if you set AppConsistent to true. This parameter specifies the name of the RAM role that is required to create application-consistent snapshots. |
AliyunECSInstanceForHbrRole |
| PreScriptPath |
string |
No |
This parameter is required only if you set AppConsistent to true. This parameter specifies the path to the pre-freeze script that is run before an application-consistent snapshot is created. |
/tmp/prescript.sh |
| PostScriptPath |
string |
No |
This parameter is required only if you set AppConsistent to true. This parameter specifies the path to the post-thaw script that is run after an application-consistent snapshot is created. |
/tmp/postscript.sh |
| EnableFsFreeze |
boolean |
No |
This parameter is required only if you set AppConsistent to true. This parameter specifies whether to use the FsFreeze mechanism of Linux to ensure file system read consistency before an application-consistent snapshot is created. The default value is true. |
true |
| TimeoutInSeconds |
integer |
No |
This parameter is required only if you set AppConsistent to true. This parameter specifies the I/O freeze timeout period. The default value is 30 seconds. |
30 |
| EnableWriters |
boolean |
No |
This parameter is required only if you set AppConsistent to true. This parameter specifies whether to create an application-consistent snapshot:
The default value is true. |
true |
| OssDetail |
object |
No |
The details of the OSS backup. |
|
| InventoryId |
string |
No |
The name of the OSS inventory. If you specify this parameter, OSS inventory is used for performance tuning.
|
30663060 |
| InventoryCleanupPolicy |
string |
No |
Specifies whether to delete the inventory file after a backup. This parameter is valid only when you use an OSS inventory. Valid values:
|
NO_CLEANUP |
| IgnoreArchiveObject |
boolean |
No |
Specifies whether to exclude archive objects from task statistics and the list of failed files. |
true |
| CommonFileSystemDetail |
object |
No |
The details of the large-scale file system backup. |
|
| FullOnIncrementFail |
boolean |
No |
Specifies whether to run a full backup if an incremental backup fails. Valid values:
|
true |
| FetchSliceSize |
integer |
No |
The size of the backup shard (the number of files). |
100000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
UpdatePolicyBindingResponse |
||
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| Code |
string |
The return code. The value 200 indicates that the request was successful. |
200 |
| Message |
string |
The message that is returned. If the request was successful, "successful" is returned. If the request failed, an error message is returned. |
successful |
| RequestId |
string |
The request ID. |
B6F24C46-54B9-519B-9AB8-A8988D705E67 |
Examples
Success response
JSON format
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "B6F24C46-54B9-519B-9AB8-A8988D705E67"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.