Disables a trail to stop delivering ActionTrail events to Object Storage Service (OSS), Simple Log Service (SLS), or MaxCompute.
Operation description
This topic provides an example on how to disable a trail named trail-test.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
actiontrail:StopLogging |
update |
*Trail
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the trail that you want to disable. The name must be 6 to 36 characters in length. It 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. |
trail-test |
For more information, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1C488B66-B819-4D14-8711-C4EAAA13AC01 |
Examples
Success response
JSON format
{
"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 specified Trail is not existed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.