You can call this operation to enable a trail.

Request parameters

Name Type Required Example Description
Action String Yes StartLogging The operation that you want to perform. Set the value to StartLogging.
RegionId String Yes cn-hangzhou The ID of the region where the instance is located. For more information about the latest list of Alibaba Cloud regions, see DescribeRegions.
Name String Yes trail-test The name of the trail to be enabled.

Response parameters

Name Type Example Description
RequestId String 145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0 The ID of the request.


Sample requests
&<Common request parameters>

Error codes

Error code Description HTTP status code
InvalidBucketNameException The error message returned when the name of the specified OSS bucket is invalid. 400
TrailNotFoundException The error message returned when the specified trail does not exist. 404