Mengubah tipe log audit yang dikumpulkan untuk instans MongoDB.
Deskripsi operasi
-
The instance must be in the running state when you call this operation.
-
This operation is applicable only to general-purpose local-disk or dedicated local-disk instances.
-
You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see Manage a Logstore.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyAuditLogFilter |
update |
*dbinstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
dds-bp12c5b040dc**** |
| Filter |
string |
Yes |
Tipe log yang dikumpulkan oleh fitur log audit instans. Pisahkan beberapa tipe dengan koma (,). Nilai valid:
|
insert,query,update,delete |
| RoleType |
string |
No |
Peran node dalam instans. Nilai valid:
|
primary |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E209BE2B-F264-4B9D-81F6-A5A5FB1FBF28 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "E209BE2B-F264-4B9D-81F6-A5A5FB1FBF28"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | Specified parameters is not valid. | |
| 400 | InvalidFilterParam | Specified filter is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.