Mengaktifkan atau menonaktifkan log audit untuk instans MongoDB, atau mengubah periode retensi log.
Deskripsi operasi
You can call this operation up to 30 times per minute. The system throttles calls that exceed this limit. Avoid calling this operation frequently. If you need to make frequent calls, use Logstore. For more information, see Manage Logstore.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyAuditPolicy |
update |
*dbinstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
dds-bp1785659e3f**** |
| AuditStatus |
string |
Yes |
Status Log audit. Nilai valid:
|
enable |
| StoragePeriod |
integer |
No |
|
30 |
| AuditLogSwitchSource |
string |
No |
Sumber permintaan. Atur parameter ini ke Console. |
Console |
| ServiceType |
string |
No |
Edisi Log audit. Nilai valid:
Catatan
|
Standard |
| HotStoragePeriod |
integer |
No |
Parameter ini hanya berlaku untuk edisi V2_Standard (Log audit DAS Edisi Perusahaan (NoSQL Compatible)) (Jenis Penyimpanan Standar). Parameter ini menentukan Durasi penyimpanan panas Log audit. Nilai valid: 0 hingga 7. Unit: hari. |
7 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
DC04D812-F18D-4568-9B88-F260D9590116 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "DC04D812-F18D-4568-9B88-F260D9590116"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | EntityNotExistUser | The User does not exist. | |
| 404 | EntityNotExistService | The Service mongodb.aliyuncs.com does not exist. | |
| 404 | NoPermissionService | The Account NoPermission Error! Please Authorize The Account! Service Name: mongodb.aliyuncs.com, SLR Role:AliyunServiceRoleForMongoDB. | |
| 409 | EntityAlreadyExistsRole | The Role already exists:AliyunServiceRoleForMongoDB. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.