doc-exports/docs/rds/api-ref/rds_log_0002.html
Wang , Deng Ke 21e968a153 rds api 2.0.38sp24 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-01-12 13:50:31 +00:00

7.6 KiB

Querying the Policy for SQL Audit Logs

Function

This API is used to query the policy for SQL audit logs.

Constraints

This API is supported for MySQL only.

URI

  • URI format

    GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/auditlog-policy

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

    For details about how to obtain the project ID, see Obtaining a Project ID.

    instance_id

    Yes

    Specifies the DB instance ID.

Response

  • Normal response
    Table 2 Parameter description

    Name

    Type

    Description

    keep_days

    Integer

    Specifies the number of days for storing audit logs. The value is 0 when SQL audit is disabled.

Status Code

Error Code

For details, see Error Codes.