Mengikat satu atau lebih sumber data ke kebijakan pencadangan.
Deskripsi operasi
Anda hanya dapat mengikat sumber data ke satu kebijakan dalam setiap permintaan.
Instance Elastic Compute Service (ECS) hanya dapat diikat ke satu kebijakan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:CreatePolicyBindings |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
string |
No |
ID kebijakan pencadangan. |
po-000************8ep |
| PolicyBindingList |
array<object> |
No |
Sumber data yang ingin Anda ikat ke kebijakan pencadangan. |
|
|
array<object> |
No |
Detail sumber data yang ingin Anda ikat ke kebijakan pencadangan. |
||
| PolicyBindingDescription |
string |
No |
Deskripsi asosiasi. |
Bind data sources to a backup policy |
| DataSourceId |
string |
No |
ID sumber data. Arti parameter ini bergantung pada parameter SourceType. Nilai yang valid:
|
i-bp1************dl8 |
| Disabled |
string |
No |
Menentukan apakah akan menonaktifkan kebijakan pencadangan untuk sumber data. Nilai yang valid:
|
true |
| SourceType |
string |
No |
Jenis sumber data. Nilai yang valid:
|
UDM_ECS |
| Source |
string |
No |
|
backup/ |
| Include |
string |
No |
Parameter ini wajib hanya jika Anda mengatur parameter 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 hanya jika Anda mengatur parameter SourceType ke ECS_FILE, File, NAS, COMMON_NAS, atau COMMON_FILE_SYSTEM. Parameter ini menentukan jenis file yang tidak perlu dicadangkan. Tidak ada file dengan jenis yang ditentukan yang akan dicadangkan. Nilai dapat memiliki panjang hingga 255 karakter. |
[\"*.doc\",\"*.xltm\"] |
| SpeedLimit |
string |
No |
Parameter ini wajib hanya jika Anda mengatur parameter SourceType ke ECS_FILE atau File. Parameter ini menentukan aturan pembatasan. Format:
|
0:24:1024 |
| AdvancedOptions |
object |
No |
Opsi lanjutan. |
|
| UdmDetail |
object |
No |
Opsi lanjutan untuk pencadangan instance ECS. |
|
| 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 the 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 Enterprise 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 Resource Access Management (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 |
integer |
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 |
| OssDetail |
object |
No |
Opsi lanjutan untuk pencadangan Object Storage Service (OSS). |
|
| InventoryId |
string |
No |
The name of the OSS inventory. If this parameter is not empty, the OSS inventory is used for performance optimization.
|
oss-inventory-default |
| InventoryCleanupPolicy |
string |
No |
Specifies whether the system deletes the inventory lists when a backup is completed. This parameter is valid only when OSS inventories are used. Valid values:
|
NO_CLEANUP |
| IgnoreArchiveObject |
boolean |
No |
Do not prompt for archival type objects in task statistics and failed file lists. |
true |
| FileDetail |
object |
No |
Opsi lanjutan untuk pencadangan file. |
|
| UseVSS |
boolean |
No |
Specifies whether to enable the Volume Shadow Copy Service (VSS) feature. Valid values:
|
true |
| AdvPolicy |
boolean |
No |
Specifies whether to use an advanced policy. Valid values:
|
true |
| CommonNasDetail |
object |
No |
Opsi lanjutan untuk pencadangan NAS on-premises. |
|
| FullOnIncrementFail |
boolean |
No |
Specifies whether the system performs full backup if incremental backup fails. Valid values:
|
true |
| FetchSliceSize |
integer |
No |
The size of backup shards (the number of files). |
100000 |
| ClusterId |
string |
No |
The ID of the backup client group. When you perform on-premises NAS backup, Cloud Backup selects clients from the specified backup client group. |
cl-000**************ggu |
| CommonFileSystemDetail |
object |
No |
Opsi lanjutan untuk pencadangan CPFS. |
|
| FullOnIncrementFail |
boolean |
No |
Specifies whether the system performs full backup if incremental backup fails. Valid values:
|
true |
| FetchSliceSize |
integer |
No |
The size of backup shards (the number of files). |
100000 |
| CrossAccountType |
string |
No |
Menentukan apakah akan mencadangkan dan memulihkan data dalam akun Alibaba Cloud yang sama atau di seluruh akun Alibaba Cloud. Nilai default: SELF_ACCOUNT. Nilai yang valid:
|
SELF_ACCOUNT |
| CrossAccountUserId |
integer |
No |
ID akun Alibaba Cloud sumber yang memberi otorisasi kepada akun Alibaba Cloud saat ini untuk mencadangkan data di seluruh akun Alibaba Cloud. |
144**********732 |
| CrossAccountRoleName |
string |
No |
Nama peran RAM yang dibuat dalam akun Alibaba Cloud sumber dan ditetapkan ke akun Alibaba Cloud saat ini untuk memberi otorisasi kepada akun Alibaba Cloud saat ini untuk mencadangkan data di seluruh akun Alibaba Cloud. |
hbrcrossrole |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
CreatePolicyBindingsResponse |
||
| Success |
boolean |
Menunjukkan apakah panggilan berhasil. Nilai yang valid:
|
true |
| Code |
string |
Kode status HTTP. Kode status 200 menunjukkan bahwa panggilan berhasil. |
200 |
| Message |
string |
Pesan yang dikembalikan. Jika panggilan berhasil, "successful" dikembalikan. Jika panggilan gagal, pesan kesalahan dikembalikan. |
successful |
| RequestId |
string |
ID permintaan. |
82CC5B6C-72F7-5D39-92F6-67887DF9AD46 |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "82CC5B6C-72F7-5D39-92F6-67887DF9AD46"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | PolicyAlreadyBoundWithThisDataSource | This datasource has already been bound with the policy, please use another one. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.