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.
|
true |
| Source |
string |
No |
The meaning varies depending on the SourceType value:
|
backup/ |
| Include |
string |
No |
This parameter is valid only when SourceType is set to ECS_FILE, File, NAS, COMMON_NAS, or COMMON_FILE_SYSTEM. Specifies the file types to back up. All files of these types are backed up. The value can be up to 255 characters in length. |
[\"*.doc\",\"*.xltm\"] |
| Exclude |
string |
No |
This parameter is valid only when SourceType is set to ECS_FILE, File, NAS, COMMON_NAS, or COMMON_FILE_SYSTEM. Specifies the file types to back up. All files of these types are backed up. The value can be up to 255 characters in length. |
[\"*.doc\",\"*.xltm\"] |
| SpeedLimit |
string |
No |
This parameter is required only when SourceType is set to ECS_FILE or File. Specifies the backup traffic control. The format is
|
0:24:5120 |
| AdvancedOptions |
object |
No |
The advanced options. |
|
| UdmDetail |
object |
No |
The ECS instance backup details. |
|
| 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 cloud disk ID that does not need to be protected. |
d-bp1************apo |
|
| DiskIdList |
array |
No |
The list of cloud disk IDs that need to be protected. This value is empty when all cloud disks are protected. |
|
|
string |
No |
The cloud disk ID that needs 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 disk types are ESSD. |
true |
| AppConsistent |
boolean |
No |
Specifies whether to create an application-consistent snapshot. Application-consistent snapshots are supported only when all cloud disk types are ESSD. |
false |
| RamRoleName |
string |
No |
This parameter is required only when AppConsistent is set to true. The RAM role name required for creating application-consistent snapshots. |
AliyunECSInstanceForHbrRole |
| PreScriptPath |
string |
No |
This parameter is required only when AppConsistent is set to true. The path of the pre-freeze script to run before creating an application-consistent snapshot. |
/tmp/prescript.sh |
| PostScriptPath |
string |
No |
This parameter is required only when AppConsistent is set to true. The path of the post-thaw script to run after creating an application-consistent snapshot. |
/tmp/postscript.sh |
| EnableFsFreeze |
boolean |
No |
This parameter is required only when AppConsistent is set to true. Specifies whether to use the Linux FsFreeze mechanism to ensure the file system is in read consistency before creating an application-consistent snapshot. Default value: true. |
true |
| TimeoutInSeconds |
integer |
No |
This parameter is required only when AppConsistent is set to true. The I/O freeze timeout period. Unit: seconds. Default value: 30. |
30 |
| EnableWriters |
boolean |
No |
This parameter is required only when AppConsistent is set to true. Specifies whether to create an application-consistent snapshot:
Default value: true. |
true |
| OssDetail |
object |
No |
The OSS backup details. |
|
| InventoryId |
string |
No |
The OSS inventory name. When this value is not empty, the OSS inventory is used for performance optimization.
|
30663060 |
| InventoryCleanupPolicy |
string |
No |
Specifies whether to delete inventory files after backup. This parameter is valid only when OSS inventory is used. Valid values:
|
NO_CLEANUP |
| IgnoreArchiveObject |
boolean |
No |
Specifies whether to exclude archive objects from job statistics and failed file lists. |
true |
| CommonFileSystemDetail |
object |
No |
The large-scale file system backup details. |
|
| FullOnIncrementFail |
boolean |
No |
Specifies whether to switch to a full backup when an incremental backup fails. Valid values:
|
true |
| FetchSliceSize |
integer |
No |
The sub-task slice size (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. A value of 200 indicates success. |
200 |
| Message |
string |
The returned message. The value "successful" is returned for successful requests. An error message is 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.