Updated on 2025-12-02 GMT+08:00

Disassociating an Instance from an LTS Log Stream

API Description

After you have disassociated an instance from an LTS log stream, logs of the instance are not uploaded to the LTS log stream.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    dds:instance:deleteLogConfig

    write

    -

    -

    -

    -

URI

  • URI format

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

  • URI example

    https://dds.cn-north-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/logs/lts-configs

    Table 1 Request Parameters

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Definition

    User token obtained from IAM. For details, see Authentication.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    project_id

    Yes

    String

    Definition

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

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

Request

  • Parameter description
    Table 2 Request body parameters

    Parameter

    Type

    Mandatory

    Description

    lts_configs

    Array of Table 3 objects

    Yes

    Definition

    List of LTS configurations to be disabled. To disable multiple log configurations for an instance, you need to specify multiple items.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    Table 3 lts_configs

    Parameter

    Type

    Mandatory

    Description

    instance_id

    String

    No

    Definition

    Instance ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    log_type

    String

    No

    Definition

    LTS log type.

    Constraints

    This parameter cannot be left blank. The options are as follows:

    • audit_log

    Range

    • audit_log

    Default Value

    N/A

  • Example Request

    Disabling audit log reporting to LTS for a DB instance

    DELETE https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/logs/lts-configs

    { 
       "lts_configs" : [ { 
         "instance_id" : "520c58ba00a3497e97ce0b9604874dd6in02", 
         "log_type" : "audit_log" 
       } ] 
     }

Response

  • Parameter description

    None

  • Example Response

    None

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.