Deletes a specified Logtail configuration file.
Request syntax
DELETE /configs/<configName> HTTP/1.1
Authorization: <AuthorizationString>
Date: <GMT Date>
Host: <Project Endpoint>
x-log-apiversion: 0.6.0
x-log-signaturemethod: hmac-sha1
Request parameters
- Request headers
The DeleteConfig operation does not have operation-specific request headers. For information about the common request headers of Log Service API operations, see Common request headers.
- Parameters
Parameter Type Required Example Description ConfigName String Yes logtail-config-sample The name of the Logtail configuration file.
Response parameters
- Response headers
The DeleteConfig operation does not have operation-specific response headers. For information about the common response headers of Log Service API operations, see Common response headers.
- Response elements
The HTTP status code 200 is returned.
Examples
- Sample requests
DELETE /configs/logtail-config-sample Header : { "Content-Length": 0, "x-log-signaturemethod": "hmac-sha1", "x-log-bodyrawsize": 0, "User-Agent": "log-python-sdk-v-0.6.0", "Host": "ali-test-project.cn-hangzhou-devcommon-intranet.sls.aliyuncs.com", "Date": "Mon, 09 Nov 2015 09:28:21 GMT", "x-log-apiversion": "0.6.0", "Authorization": "LOG <yourAccessKeyId>:<yourSignature>" }
- Sample responses
Header : { "date": "Mon, 09 Nov 2015 09:28:21 GMT", "connection": "close", "x-log-requestid": "5640673599248CAA230836C6", "content-length": "0", "server": "nginx/1.6.1" }
Error codes
HTTP status code | Error code | Error message | Description |
404 | ConfigNotExist | config {Configname} does not exist. | The error message returned because the specified Logtail configuration file does not exist. |
400 | InvalidParameter | invalid config resource json. | The error message returned because a parameter value is invalid. |
500 | InternalServerError | internal server error. | The error message returned because an internal server error has occurred. |
For more information about the error codes, see Common error codes.