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, which is obtained from the response of the API for querying structuring configurations. 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. |
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot