edit-icon download-icon

GetTrailStatus

Last Updated: Mar 21, 2018

Description

Retrieves a JSON-formatted list of information about the specified trail.

Request parameters

Name Type Required Description
Action String Yes The parameter of the operation to perform: GetTrailStatus.
Name String Yes The trail name.

Response parameters

Common response parameters. For more information, see Common parameters.

Name Type Description
IsLogging Boolean Whether the trail is logging API calls.
LatestDeliveryError String The last time an error occured when the trail attemped to deliver log files.
LatestDeliveryTime String The date and time of the last successful delivery of a log.
StartLoggingTime String The most recent date and time when the trail is enabled by the user.
StopLoggingTime String The most recent date and time when the trail is disabled by the user.

Required permissions

Action

actiontrail:GetTrailStatus

Resource

acs:actiontrail:${region}:${AccountId}:*

Error codes

Error code Description HTTP status code
InvalidTrailNameException Invalid trail name. 400
TrailNotFoundException The specified name does not exist. 404

Example

Request example

  1. http://actiontrail.cn-hangzhou.aliyuncs.com/actiontrail?
  2. &Name=trail-test
  3. &Action=GetTrailStatus
  4. &<公共请求参数>

Response example

JSON example

  1. {
  2. "IsLogging": true,
  3. "StartLoggingTime": "Wed Dec 02 15:41:06 CST 2015"
  4. }
Thank you! We've received your feedback.