Memperbarui asosiasi antara kebijakan cadangan dan sumber data.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:UpdatePolicyBinding |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
string |
Yes |
ID kebijakan cadangan. |
po-000************ky9 |
| DataSourceId |
string |
Yes |
ID sumber data. |
i-bp1************dtv |
| SourceType |
string |
Yes |
Jenis sumber data. Nilai valid:
|
UDM_ECS |
| PolicyBindingDescription |
string |
No |
Deskripsi pengikatan kebijakan. |
po-000************5xx-i-2ze************nw4 |
| Disabled |
boolean |
No |
Apakah akan menonaktifkan kebijakan cadangan untuk sumber data.
|
true |
| Source |
string |
No |
Parameter ini memiliki arti berbeda berdasarkan nilai SourceType.
|
backup/ |
| Include |
string |
No |
Parameter ini hanya tersedia jika Anda menetapkan SourceType ke ECS_FILE, File, NAS, COMMON_NAS, atau COMMON_FILE_SYSTEM. Parameter ini menentukan jenis file yang akan dicadangkan. Semua file dengan jenis yang ditentukan akan dicadangkan. Nilai dapat memiliki panjang hingga 255 karakter. |
[\"*.doc\",\"*.xltm\"] |
| Exclude |
string |
No |
Parameter ini wajib saat SourceType ditetapkan ke ECS_FILE, File, NAS, COMMON_NAS, atau COMMON_FILE_SYSTEM. Parameter ini menentukan jenis file yang akan dikecualikan dari cadangan. Nilai dapat memiliki panjang hingga 255 karakter. |
[\"*.doc\",\"*.xltm\"] |
| SpeedLimit |
string |
No |
Parameter ini hanya wajib jika Anda menetapkan SourceType ke ECS_FILE atau File. Parameter ini menentukan aturan pembatasan kecepatan untuk cadangan. Formatnya adalah
|
0:24:5120 |
| AdvancedOptions |
object |
No |
Opsi lanjutan. |
|
| 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 |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "B6F24C46-54B9-519B-9AB8-A8988D705E67"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.