You can call this operation to retrieve a list of information about the specified trail in the JSON format.

Request parameters

Name Type Required Example Description
Action String Yes GetTrailStatus The operation that you want to perform. Set the value to GetTrailStatus.
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 trail name, which must be unique for an account.

Response parameters

Name Type Example Description
IsLogging Boolean true Indicates whether the trail is logging API invocations.
LatestDeliveryError String write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 The last time an error occurred when the trail attempted to deliver log files.
LatestDeliveryTime String 1547792223000 The date and time of the last successful delivery of a log file.
StartLoggingTime String Wed Dec 02 15:41:06 CST 2015 The most recent date and time when the user enables the trail.
StopLoggingTime String Wed Dec 03 15:41:06 CST 2015 The most recent date and time when the user disables the trail.
RequestId String 145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0 The ID of the request.

Examples

Sample requests

http://actiontrail.cn-hangzhou.aliyuncs.com/?
Action=GetTrailStatus
&RegionId=cn-hangzhou
&Name=trail-test
&<Common request parameters>

Sample responses

JSON format

{
  "IsLogging": true,
  "StartLoggingTime": "Wed Dec 02 15:41:06 CST 2015"
}

Error codes

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