Mengaktifkan atau memodifikasi pengaturan log audit instans ApsaraDB for Tair (kompatibel dengan Redis OSS).
Deskripsi operasi
Sebelum Anda memanggil operasi ini, pastikan Anda sepenuhnya memahami metode penagihan dan harga fitur log audit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifyAuditLogConfig |
update |
*DBInstance
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID instans. |
r-bp1zxszhcgatnx**** |
| Retention |
integer |
No |
Periode retensi log audit. Nilai yang valid: 1 hingga 365. Catatan
|
10 |
| DbAudit |
boolean |
No |
Menentukan apakah akan mengaktifkan fitur log audit. Nilai yang valid:
Catatan
Jika instans menggunakan arsitektur cluster atau arsitektur pemisahan baca/tulis, log audit dari node data dan node proxy diaktifkan atau dinonaktifkan secara bersamaan. Anda tidak dapat mengaktifkan atau menonaktifkan log audit hanya untuk node data atau node proxy saja. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
8D0C0AFC-E9CD-47A4-8395-5C31BF9B**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "8D0C0AFC-E9CD-47A4-8395-5C31BF9B****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRetention | The Retention is invalid. | |
| 400 | ResourceConfigError | The request processing has failed due to resource config error. | |
| 403 | TaskHasExist | The task already exists. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.