Disables logging for a trail.
This topic describes how to disable logging for a sample trail named trail-test
.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | StopLogging |
The operation that you want to perform. Set the value to StopLogging. |
Name | String | Yes | trail-test |
The name of the trail for which you want to disable logging. The name must be 6 to 36 characters in length. The name must start with a lowercase letter and can contain lowercase letters, digits, hyphens (-), and underscores (_). Note The name must be unique within your Alibaba Cloud account.
|
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1C488B66-B819-4D14-8711-C4EAAA13AC01 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=StopLogging
&Name=trail-test
&<Common request parameters>
Sample success responses
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1C488B66-B819-4D14-8711-C4EAAA13AC01"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | TrailNotFoundException | The specified Trail does not exist. | The error message returned because the specified trail does not exist. |
For a list of error codes, visit the API Error Center.