Queries the audit log configurations of a Tair (Redis OSS-compatible) instance, including whether the audit log feature is enabled and the retention period of audit logs.
Operation description
Before you call this operation, you must enable the audit log feature for the instance. For more information, see ModifyAuditLogConfig or Enable the audit log feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeAuditLogConfig |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeInstanceAttribute operation to query the region ID. |
cn-hanghzou |
| InstanceId |
string |
Yes |
The ID of the instance. You can call the DescribeInstances operation to query the instance ID. |
r-bp1zxszhcgatnx**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Retention |
string |
The retention period of audit logs. Unit: days. |
5 |
| RequestId |
string |
The request ID. |
2BE6E619-A657-42E3-AD2D-18F8428A**** |
| DbAudit |
string |
Indicates whether the audit log feature is enabled. Valid values:
Note
You can call the ModifyAuditLogConfig operation to enable or disable the audit log feature for a Tair (Redis OSS-compatible) instance. |
true |
Examples
Success response
JSON format
{
"Retention": "5",
"RequestId": "2BE6E619-A657-42E3-AD2D-18F8428A****",
"DbAudit": "true"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidInstanceId.NotFound | The InstanceId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.