Binds one or more data sources to a backup policy.
Operation Description
- You can bind data sources to only one policy in each request.
- Elastic Compute Service (ECS) instances can be bound to only one policy.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PolicyId | string | No | The ID of the backup policy. | po-000************8ep |
PolicyBindingList | array | No | The data sources that you want to bind to the backup policy. | |
object | No | The details of the data sources that you want to bind to the backup policy. | ||
PolicyBindingDescription | string | No | The description of the association. | Bind data sources to a backup policy |
DataSourceId | string | No | The ID of the data source. | i-bp1************dl8 |
Disabled | string | No | Specifies whether to disable the backup policy for the data source. Valid values:
| true |
SourceType | string | No | The type of the data source. Valid values:
| UDM_ECS |
AdvancedOptions | object | No | Advanced options. | |
UdmDetail | object | No | The details of ECS instance backup. | |
ExcludeDiskIdList | array | No | The IDs of the disks that do not need to be protected. If the DiskIdList parameter is not empty, this parameter is ignored. | |
string | No | The ID of the disk that does not need to be protected. | d-bp1************apo | |
DiskIdList | array | No | The IDs of disks that need to be protected. If all disks need to be protected, this parameter is empty. | |
string | No | The ID of the 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 disks are enhanced SSDs (ESSDs). | true |
AppConsistent | boolean | No | Specifies whether to enable application consistency. You can enable application consistency only if all disks are ESSDs. | false |
RamRoleName | string | No | This parameter is required only if you set the AppConsistent parameter 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 the AppConsistent parameter to true. This parameter specifies the path of the pre-freeze scripts that are executed before application-consistent snapshots are created. | /tmp/prescript.sh |
PostScriptPath | string | No | This parameter is required only if you set the AppConsistent parameter to true. This parameter specifies the path of the post-thaw scripts that are executed after application-consistent snapshots are created. | /tmp/postscript.sh |
EnableFsFreeze | boolean | No | This parameter is required only if you set the AppConsistent parameter to true. This parameter specifies whether to enable Linux fsfreeze to put file systems into the read-only state before application-consistent snapshots are created. Default value: true. | true |
TimeoutInSeconds | long | No | This parameter is required only if you set the AppConsistent parameter to true. This parameter specifies the I/O freeze timeout period. Default value: 30. Unit: seconds. | 30 |
EnableWriters | boolean | No | This parameter is required only if you set the AppConsistent parameter to true. This parameter specifies whether to create application-consistent snapshots. Valid values:
Default value: true. | true |
Response parameters
Example
Normal return example
JSON
Format
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "82CC5B6C-72F7-5D39-92F6-67887DF9AD46"
}
Error codes
For a list of error codes, visit the API error center.