Help Center/ GeminiDB/ API Reference/ API v3/ Logs/ Disassociating Instances from an LTS Log Stream
Updated on 2026-09-22 GMT+08:00

Disassociating Instances from an LTS Log Stream

Function

After you have disassociated instances from an LTS log stream, logs of these instances are not automatically uploaded to the associated LTS log stream.

Constraints

  • This API supports slow query log configuration for the following instance:

    • GeminiDB Redis
  • This API supports audit log configuration for the following instances:
    • Proxy cluster GeminiDB Redis instance with classic storage
    • Primary/Standby GeminiDB Redis instance with classic storage
    • GeminiDB Redis instance with cloud native storage
    • GeminiDB DynamoDB-Compatible
    • GeminiDB Mongo

Authorization Information

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

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • 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

    gaussdbfornosql:instance:setLogConfigs

    Write

    -

    -

    nosql:instances:saveLtsStreams

    -

URI

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

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID.

Constraints

N/A

Range

The value contains 32 characters. Only letters and digits are allowed.

Default Value

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token

You can obtain the token by calling the IAM API by following Obtaining a User Token Through Password Authentication.

Constraints

N/A

Range

N/A

Default Value

N/A

X-Language

No

String

Definition

Language.

Constraints

N/A

Range

  • zh-cn: Chinese
  • en-us: English

Default Value

N/A

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

instance_ids

Yes

Array of strings

Definition

IDs of instances to be disassociated from an LTS log stream To obtain the value, call the Querying Instances and Details API.

Constraints

The database types of all instances in the instance ID list must be the same.

log_type

Yes

String

Definition

Log type

Constraints

N/A

Range

  • slow_log: slow query log
  • audit_log: audit log

Default Value

N/A

Response Parameters

Status code: 200

No response parameters

Example Requests

  • URI example
    DELETE https://{Endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/logs/lts-configs 
  • Disassociating instances from an LTS log stream that supports slow query logs
    { 
      "instance_ids" : [ "fe45815ce8a6413ab7fa290da1db1614in12", "362b42f769ff45d884e1866f8ee00bb4in12" ], 
      "log_type" : "slow_log" 
    }
  • Disassociating instances from an LTS log stream that supports audit logs
    { 
      "instance_ids" : [ "fe45815ce8a6413ab7fa290da1db1614in12", "362b42f769ff45d884e1866f8ee00bb4in12" ], 
      "log_type" : "audit_log" 
    }

Example Responses

Status code: 200

Success

{}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.