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

Deleting a Structuring Rule

Function

This API is used to delete a structuring rule of a log stream.

URI

DELETE /v2/{project_id}/lts/struct/template

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

Minimum: 32

Maximum: 32

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

Minimum: 1000

Maximum: 2000

Content-Type

Yes

String

Set this parameter to application/json;charset=UTF-8.

Minimum: 30

Maximum: 30

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

id

Yes

String

Structuring rule ID, which is obtained from the response of the API for querying structuring configurations.

Minimum: 106

Maximum: 106

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

SVCSTG.ALS.200200

error_msg

String

delete struct config successfully

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Deleting the structuring rule of the current ID

DELETE https://{endpoint}/v2/{project_id}/lts/struct/template

{
  "id" : "2a473356cca5487f8373be891bffc1cf_8a75b77d-7d72-4d7e-8c50-a24562cf8b0b_fd5e1a7c-7412-475d-a013-8891d539574e"
}

Example Responses

Status code: 200

The structuring rule is deleted.

{
  "error_code" : "SVCSTG.ALS.200200",
  "error_msg" : "delete struct config sucessfully"
}

Status code: 400

Invalid request. Modify the request based on the description in error_msg before a retry.

{
  "error_code" : "SVCSTG.ALS.200201",
  "error_msg" : "structConfigId is error."
}

Status Codes

Status Code

Description

200

The structuring rule is deleted.

400

Invalid request. Modify the request based on the description in error_msg before a retry.

Error Codes

See Error Codes.