Memodifikasi kebijakan retensi cadangan log untuk kluster PolarDB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyLogBackupPolicy |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Panggil operasi DescribeDBClusters untuk melihat informasi tentang semua kluster di wilayah tertentu, termasuk ID kluster. |
pc-**************** |
| LogBackupRetentionPeriod |
string |
No |
Periode retensi cadangan log. Nilai yang valid:
Catatan
|
3 |
| LogBackupAnotherRegionRegion |
string |
No |
Wilayah tujuan untuk cadangan log cross-region. Untuk informasi mengenai wilayah yang mendukung cadangan lintas wilayah, lihat Overview. Catatan
|
cn-hangzhou |
| LogBackupAnotherRegionRetentionPeriod |
string |
No |
Periode retensi cadangan log lintas wilayah. Nilai yang valid:
Catatan
|
30 |
| AdvancedLogPolicies |
array<object> |
No |
Kebijakan backup advanced. Catatan
|
|
|
object |
No |
|||
| PolicyId |
string |
No |
ID kebijakan cadangan log. |
71930ac2e9f15e41615e10627c****** |
| ActionType |
string |
No |
Jenis operasi. Nilai yang valid:
|
CREATE |
| SrcType |
string |
No |
Jenis sumber kebijakan cadangan log. Nilai yang valid:
|
level1 |
| DestType |
string |
No |
Jenis tujuan kebijakan cadangan. Nilai yang valid:
|
level2 |
| LogRetentionType |
string |
No |
Jenis periode retensi untuk cadangan log. Nilai yang valid:
|
delay |
| LogRetentionValue |
string |
No |
Jumlah hari untuk menyimpan cadangan log. Nilai yang valid:
|
10 |
| EnableLogBackup |
integer |
No |
Menentukan apakah cadangan log diaktifkan. Tetapkan nilainya ke 1. |
1 |
| SrcRegion |
string |
No |
Wilayah sumber kebijakan cadangan log. |
cn-beijing |
| DestRegion |
string |
No |
Wilayah tujuan kebijakan cadangan log. |
cn-shanghai |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
345174B4-FAB3-412E-A326-BEDDA9****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "345174B4-FAB3-412E-A326-BEDDA9******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidLogBackupRetentionPeriod.Malformed | The specified parameter LogBackupRetentionPeriod is not valid. | The specified LogBackupRetentionPeriod parameter is invalid. |
| 400 | InvalidLogBackupAnotherRegionRetentionPeriod.Malformed | The specified parameter LogBackupAnotherRegionRetentionPeriod is not valid. | The specified LogBackupAnotherRegionRetentionPeriod parameter is invalid. |
| 400 | InvalidLogBackupAnotherRegionRegion.NotFound | The specified parameter LogBackupAnotherRegionRegion does not found. | The specified LogBackupAnotherRegionRegion parameter is not found. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.