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
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
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 |
Parameter | Mandatory | Type | Description |
---|---|---|---|
id | Yes | String | Structuring rule ID. Minimum: 106 Maximum: 106 |
Response Parameters
Status code: 200
Parameter | Type | Description |
---|---|---|
error_code | String | SVCSTG.ALS.200200 |
error_msg | String | delete struct config successfully |
Status code: 400
Parameter | Type | Description |
---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Status code: 401
Parameter | Type | Description |
---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Status code: 403
Parameter | Type | Description |
---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Status code: 500
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/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.
{"id" : "xxxxxx"}
Status code: 400
BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.
{"errorCode" : "LTS.0612","errorMessage" : "timee fieldType is error"}
Status code: 401
AuthFailed. Authentication failed. Check the token and try again.
{"error_code" : "LTS.0414","error_msg" : "Invalid token"}
Status code: 403
Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
{"error_code" : "LTS.0001","error_msg" : "Invalid projectId"}
Status code: 500
InternalServerError.
The server has received the request but encountered an internal error.
{"error_code" : "LTS.0010","error_msg" : "Internal Server Error"}
Status Codes
Status Code | Description |
---|---|
200 | The structuring rule is deleted. |
400 | BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry. |
401 | AuthFailed. Authentication failed. Check the token and try again. |
403 | Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. |
500 | InternalServerError. The server has received the request but encountered an internal error. |
503 | ServiceUnavailable. The requested service is unavailable. |
Error Codes
See Error Codes.
- URI