DeleteConfig

Last Updated: Mar 31, 2017

Deletes specific configuration. If the configuration has been applied to the machine group, the Logtail configuration will be deleted.

DELETE /configs/{configName}

Request syntax

  1. DELETE /configs/<configName> HTTP/1.1
  2. Authorization: <AuthorizationString>
  3. Date: <GMT Date>
  4. Host: <Project Endpoint>
  5. x-log-apiversion: 0.6.0
  6. x-log-signaturemethod: hmac-sha1

Request parameters

URL parameters:

Name Type Required or Not Description
ConfigName string Yes The log configuration name

Request header

No special request header is available. For details about the public request header of the API, refer to Public Request Header.

Response header

No special response header is available. For details about the public response header of the API, refer to Public Response Header.

Response element

The system returns the HTTP status code 200.

Error code

In addition to general error codes of the API, the following special error codes may be returned:

HTTP Status Code Error Code Error Message
400 ConfigAlreadyExist config {Configname} already exist
400 InvalidParameter invalid config resource json
500 InternalServerError internal server error

Example

Request example:
  1. DELETE /configs/logtail-config-sample
  2. Header :
  3. {
  4. "Content-Length": 0,
  5. "x-log-signaturemethod": "hmac-sha1",
  6. "x-log-bodyrawsize": 0,
  7. "User-Agent": "log-python-sdk-v-0.6.0",
  8. "Host": "ali-test-project.cn-hangzhou-devcommon-intranet.sls.aliyuncs.com",
  9. "Date": "Mon, 09 Nov 2015 09:28:21 GMT",
  10. "x-log-apiversion": "0.6.0",
  11. "Authorization": "LOG 94to3z418yupi6ikawqqd370:utd/O1JNCYvcRGiSXHsjKhTzJDI="
  12. }
Response example:
  1. Header :
  2. {
  3. "date": "Mon, 09 Nov 2015 09:28:21 GMT",
  4. "connection": "close",
  5. "x-log-requestid": "5640673599248CAA230836C6",
  6. "content-length": "0",
  7. "server": "nginx/1.6.1"
  8. }
Thank you! We've received your feedback.