Removes a Logtail configuration file from a machine group.
Request syntax
DELETE /machinegroups/groupName HTTP/1.1
Authorization: LOG yourAccessKeyId:yourSignature
Date: GMT Date
Host: ProjectName.Endpoint
x-log-apiversion: 0.6.0
x-log-signaturemethod: hmac-sha1
The value of the Host parameter consists of a project name and an endpoint. You must specify a project name for the Host parameter.
Request parameters
- Request headers
The RemoveConfigFromMachineGroup 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 projectName String Yes ali-test-project The name of the project. groupName String Yes sample-group The name of the machine group. configName String Yes logtail-config-sample The name of the Logtail configuration file.
Response parameters
- Response headers
The RemoveConfigFromMachineGroup 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
If the request succeeds, the HTTP status code 200 is returned. If the request is successful, no other elements are returned.
Examples
- Sample requests
DELETE /machinegroups/sample-group/configs/logtail-config-sample { "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:48:48 GMT", "x-log-apiversion": "0.6.0", "Authorization": "LOG <yourAccessKeyId>:<yourSignature>" }
- Sample success responses
HTTP/1.1 200 OK Header: { "date": "Mon, 09 Nov 2015 09:48:48 GMT", "connection": "close", "x-log-requestid": "56406C0099248CAA230BE135", "content-length": "0", "server": "nginx/1.6.1" }
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | MachineGroupNotExist | MachineGroup groupName does not exist. | The error message returned because the specified machine group does not exist. |
404 | ConfigNotExist | Config configName does not exist. | The error message returned because the specified Logtail configuration file does not exist. |
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.