Enables a trail to start delivering ActionTrail events to Object Storage Service (OSS), Simple Log Service (SLS), or MaxCompute.
Operation description
This topic provides an example on how to enable a trail named trail-test.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
actiontrail:StartLogging | update | *Trail
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
Name | string | Yes | The name of the trail that you want to enable. 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
Parameter | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0 |
Examples
Success response
JSON format
{
"RequestId": "145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0"
}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.