Help Center/ Relational Database Service/ API Reference/ API v3 (Recommended)/ Log Information Queries/ Disabling Log Ingestion to LTS for Instances in Batches (RDS for MySQL)
Updated on 2025-09-24 GMT+08:00

Disabling Log Ingestion to LTS for Instances in Batches (RDS for MySQL)

Function

This API is used to disable log ingestion to LTS for instances in batches.

Constraints

You can remove log streams for a maximum of 20 instances at a time. If you remove log streams for audit logs, you can specify a maximum of 10 instances at a time.

URI

  • URI format

    DELETE /v3/{project_id}/{engine}/instances/logs/lts-configs

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Definition

    Project ID of a tenant in a region.

    To obtain the value, see Obtaining a Project ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    engine

    Yes

    Definition

    Instance engine to be queried.

    Constraints

    Only the MySQL engine is supported.

    Range

    mysql

    Default Value

    N/A

Request Parameters

Table 2 Parameters

Parameter

Mandatory

Type

Description

log_configs

Yes

Array of objects

Definition

Instance log configurations. For details, see Table 3.

Constraints

N/A

Table 3 log_configs field data structure description

Parameter

Mandatory

Type

Description

instance_id

Yes

String

Definition

Instance ID.

Constraints

N/A

Range

N/A

Default Value

N/A

log_type

Yes

String

Definition

Log type.

Constraints

N/A

Range

  • error_log: error logs
  • slow_log: slow query logs
  • audit_log: audit logs

Default Value

N/A

Example Request

Disable log ingestion to LTS for RDS for MySQL instances in batches.

DELETE https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/mysql/instances/logs/lts-configs

{
 "log_configs": [
  {
   "instance_id": "2b1d07d2c9c04d62a95d627c607dbbfein01",
   "log_type": "audit_log"
  }
 ]
}

Response

Status Code

Error Code

For details, see Error Codes.