Updated on 2026-01-08 GMT+08:00

Deleting Audit Logs

API Description

This API is used to delete audit logs.

URI

  • URI format

    DELETE https://{Endpoint}/v3/{project_id}/instances/{instance_id}/auditlog

Table 1 Path parameters

Name

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.

instance_id

Yes

String

Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.

Request Parameters

Table 2 Request header parameters

Parameter

Type

IN

Mandatory

Description

X-Auth-Token

string

header

Yes

User token

Table 3 Request body parameters

Name

Mandatory

Type

Description

file_names

Yes

Array of strings

File name list.

  • Example request
    {
      "file_names" : [
      "054bc9f81e80d2201fccc00b92ad6ec0_audit_log_65ca506de9904366bdf69ca8174250abin02_dda6bd25f6b043518f9574befabc9536no02_1660354924651", 
      "054bc9f81e80d2201fccc00b92ad6ec0_audit_log_65ca506de9904366bdf69ca8174250abin02_dda6bd25f6b043518f9574befabc9536no02_1660354987726" ]
    }

Response Parameters

  • Parameter description
    Table 4 Response body parameters

    Parameter

    Type

    Description

    job_id

    String

    Task ID.

  • Example response
    { 
      "job_id" : "bf26cf3c-d046-4080-bb45-f114be7afa5f" 
    }

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.