RemoveConfigFromMachineGroup

Last Updated: Mar 31, 2017

Deletes configurations from the machine group.

Example:

DELETE /machinegroups/{GroupName}/configs/{ConfigName}

Request parameters

Name Type Required or Not Description
GroupName string Yes Name of the machine group
ConfigName string Yes Name of the log configuration

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
404 GroupNotExist group {GroupName} not exist
404 ConfigNotExist config {ConfigName} not exist
500 InternalServerError internal server error

Example

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