Help Center/ GaussDB/ API Reference/ APIs (Recommended)/ LTS Logs/ Disassociating an Instance from an LTS Log Stream
Updated on 2025-10-20 GMT+08:00

Disassociating an Instance from an LTS Log Stream

Function

This API is used to disassociate an instance from an LTS log stream. Before calling this API:

Debugging

You can debug this API in API Explorer.

URI

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

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID of a tenant in a region.

To obtain the value, see Obtaining a Project ID.

Constraints

N/A

Range

The value can contain 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 used to obtain a user token.

The value of X-Subject-Token in the response header is the token value.

Constraints

N/A

Range

N/A

Default Value

N/A

X-Language

No

String

Definition

Language.

Constraints

N/A

Range

  • zh-cn
  • en-us

Default Value

en-us

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

list

Yes

Array Table 4 of objects

Definition

List of instance logs for delivering configurations. The list can contain up to 1,000 entries.

Constraints

N/A

Table 4 LtsConfigDetail

Parameter

Mandatory

Type

Description

instance_id

Yes

String

Definition

Instance ID.

Constraints

N/A

Range

The value can contain 36 characters. Only letters and digits are allowed.

Default Value

N/A

log_type

Yes

String

Definition

Log type.

Constraints

N/A

Range

audit_log: audit log

Default Value

N/A

Response Parameters

Table 5 Response parameters

Parameter

Type

Description

job_id

String

Definition

ID of the job for creating an instance.

Range

N/A

Example Request

Disassociating an instance from an LTS log stream

DELETE https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/4879de6859e345c780f1a22d8bc6f229/instances/logs/lts-config
{
  "list": [
    {
      "instance_id": "4dfd90b8c59f46b7aefe8c5da903328ein14",
      "log_type": "audit_log"
    }
  ]
}

Example Response

{
    "job_id": "d7b73e60-4237-43d0-9007-097b7678495d"
}

Status Codes

Error Codes

For details, see Error Codes.