UpdatePolicyBinding
Modifies the association between a 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 policy ID. |
po-000************ky9 |
| DataSourceId |
string |
Yes |
The data source ID. |
i-bp1************dtv |
| SourceType |
string |
Yes |
The data source type. Valid values:
|
UDM_ECS |
| PolicyBindingDescription |
string |
No |
The description of the policy binding. |
po-000************5xx-i-2ze************nw4 |
| Disabled |
boolean |
No |
Specifies whether the policy is suspended for the data source. Valid values:
|
true |
| Source |
string |
No |
The backup source. The meaning varies based on the value of SourceType.
|
/src |
| Include |
string |
No |
The file types to back up. This parameter is available when SourceType is set to ECS_FILE, File, NAS, COMMON_NAS, COMMON_FILE_SYSTEM, or CPFS. All files of the specified types are backed up. The value can be up to 255 characters in length. |
[\"*.doc\",\"*.xltm\"] |
| Exclude |
string |
No |
The file types to back up. This parameter is available when SourceType is set to ECS_FILE, File, NAS, COMMON_NAS, COMMON_FILE_SYSTEM, or CPFS. All files of the specified types are backed up. The value can be up to 255 characters in length. |
[\"*.doc\",\"*.xltm\"] |
| SpeedLimit |
string |
No |
The backup traffic throttling. This parameter is required when SourceType is set to ECS_FILE or File. 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 IDs of the cloud disks that do not need to be protected. This parameter is ignored if DiskIdList is not empty. |
|
|
string |
No |
The ID of the cloud disk that does not need to be protected. |
d-bp1************apo |
|
| DiskIdList |
array |
No |
The IDs of the cloud disks to be protected. This value is empty when all cloud disks are protected. |
|
|
string |
No |
The ID of the cloud disk to be protected. |
d-bp1************apo |
|
| SnapshotGroup |
boolean |
No |
Specifies whether to create a snapshot-consistent group. Snapshot-consistent groups are supported only when all cloud disks are ESSDs. |
true |
| AppConsistent |
boolean |
No |
Specifies whether to enable application consistency. Application-consistent snapshots are supported only when all cloud disks are ESSDs. |
false |
| RamRoleName |
string |
No |
The name of the RAM role configured to create application-consistent snapshots. This parameter is required when AppConsistent is set to true. |
AliyunECSInstanceForHbrRole |
| PreScriptPath |
string |
No |
The path of the pre-freeze script to execute before creating an application-consistent snapshot. This parameter is required when AppConsistent is set to true. |
/tmp/prescript.sh |
| PostScriptPath |
string |
No |
The path of the post-thaw script to execute after creating an application-consistent snapshot. This parameter is required when AppConsistent is set to true. |
/tmp/postscript.sh |
| EnableFsFreeze |
boolean |
No |
Specifies whether to use the Linux FsFreeze mechanism to ensure the read consistency of the file system before creating an application-consistent snapshot. This parameter is required when AppConsistent is set to true. Default value: true. |
true |
| TimeoutInSeconds |
integer |
No |
The I/O freeze timeout period. Unit: seconds. This parameter is required when AppConsistent is set to true. Default value: 30. |
30 |
| EnableWriters |
boolean |
No |
Specifies whether to configure application-consistent snapshots. This parameter is required when AppConsistent is set to true. Valid values:
Default value: true. |
true |
| OssDetail |
object |
No |
The details of the OSS backup. |
|
| InventoryId |
string |
No |
The name of the OSS inventory. If this value is not empty, the OSS inventory is used for performance tuning.
|
30663060 |
| InventoryCleanupPolicy |
string |
No |
Specifies whether to delete the inventory files after the backup. This parameter is valid only when an OSS inventory is used. Valid values:
|
NO_CLEANUP |
| IgnoreArchiveObject |
boolean |
No |
Excludes archived objects from task statistics and failed file lists. |
true |
| CommonFileSystemDetail |
object |
No |
The details of the large-scale file system backup. |
|
| FullOnIncrementFail |
boolean |
No |
Specifies whether to switch to a full backup when an incremental backup fails. Valid values:
|
true |
| FetchSliceSize |
integer |
No |
The backup slice size (number of files). |
100000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
UpdatePolicyBindingResponse |
||
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The return code. A value of 200 indicates success. |
200 |
| Message |
string |
The return message. "successful" is returned for successful requests, and specific error messages are returned for failed requests. |
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.