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 mengkueri detail semua kluster di suatu wilayah, termasuk ID kluster tersebut. |
pc-**************** |
| LogBackupRetentionPeriod |
string |
No |
Periode retensi cadangan log. Nilai yang valid:
Catatan
|
3 |
| LogBackupAnotherRegionRegion |
string |
No |
Wilayah tujuan untuk cadangan log cross-region. Untuk wilayah yang mendukung cadangan lintas wilayah, lihat Ikhtisar. Catatan
|
cn-hangzhou |
| LogBackupAnotherRegionRetentionPeriod |
string |
No |
Periode retensi cadangan log lintas wilayah. Nilai yang valid:
Catatan
|
30 |
| AdvancedLogPolicies |
array<object> |
No |
||
|
object |
No |
|||
| PolicyId |
string |
No |
71930ac2e9f15e41615e10627c****** |
|
| ActionType |
string |
No |
CREATE |
|
| SrcType |
string |
No |
level1 |
|
| DestType |
string |
No |
level2 |
|
| LogRetentionType |
string |
No |
delay |
|
| LogRetentionValue |
string |
No |
10 |
|
| EnableLogBackup |
integer |
No |
1 |
|
| SrcRegion |
string |
No |
cn-beijing |
|
| DestRegion |
string |
No |
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.