Mengubah kebijakan cadangan anti-ransomware untuk database.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyUniBackupPolicy |
update |
*All Resources
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
integer |
Yes |
ID kebijakan cadangan anti-ransomware untuk database. Catatan
Anda dapat memanggil operasi DescribeUniBackupPolicies untuk mendapatkan parameter ini. |
123 |
| PolicyName |
string |
No |
Nama kebijakan cadangan anti-ransomware untuk database. |
databak |
| Retention |
integer |
No |
Jumlah hari penyimpanan snapshot cadangan. |
7 |
| SpeedLimiter |
integer |
No |
Pembatasan kecepatan untuk lebar pita jaringan cadangan. Unit: bytes. |
1048576 |
| AccountName |
string |
No |
Nama pengguna akun database. |
sa |
| AccountPassword |
string |
No |
Kata sandi akun database. |
Sa@**** |
| FullPlan |
object |
No |
Kebijakan cadangan penuh. Nilai dalam format JSON dan berisi bidang berikut:
|
{"days":[4],"interval":1,"planType":"weekly","startTime":"22:00:00"} |
| IncPlan |
object |
No |
Kebijakan cadangan inkremental. Nilai dalam format JSON dan berisi bidang berikut:
|
{"interval":1,"planType":"daily","startTime":"23:30:00"} |
| PolicyStatus |
string |
No |
Status kebijakan. Nilai valid:
|
enabled |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| RequestId |
string |
ID permintaan, yaitu pengidentifikasi unik yang dibuat oleh Alibaba Cloud untuk permintaan. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
3F6FAB39-5AF7-5B2C-A17D-16D52AE0**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "3F6FAB39-5AF7-5B2C-A17D-16D52AE0****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | FailedToActivateUniBackupInstance | Failed to activate unbackup instance. | The password verification failed. Try again. |
| 400 | AntiRansomwareCapacityUseUp | anti ransomware capacity use up | The anti-ransomware capacity is insufficient. Go to the purchase page to expand the capacity. |
| 400 | InvalidParam | There was an error with your request. | An error occurred in your request. Try again later. |
| 400 | UniBackupPlanNotFound | The backup plan cannot be found. | The backup plan cannot be found. |
| 500 | ServerError | ServerError | A server error occurred. Try again later. |
| 403 | NoPermission | caller has no permission | The current operation is not authorized. Use your Alibaba Cloud account to grant the required permissions in the RAM console and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.