v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1444270263.9 KB

Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.

post/#X-Amz-Target=com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetTrailStatus

Headers

X-Amz-Target'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetTrailStatus' required

Request body

Namestring required
<p>Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The following is the format of a trail ARN.</p> <p> <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> </p>

Response

Success

IsLoggingboolean

Whether the CloudTrail trail is currently logging Amazon Web Services API calls.

LatestDeliveryErrorstring
<p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error Responses</a> in the Amazon S3 API Reference. </p> <note> <p>This error occurs only when there is a problem with the destination S3 bucket, and does not occur for requests that time out. To resolve the issue, create a new bucket, and then call <code>UpdateTrail</code> to specify the new bucket; or fix the existing objects so that CloudTrail can again write to the bucket.</p> </note>
LatestNotificationErrorstring

Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon SNS Developer Guide</a>.

LatestDeliveryTimestring date-time

Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.

LatestNotificationTimestring date-time

Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.

StartLoggingTimestring date-time

Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.

StopLoggingTimestring date-time

Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.

LatestCloudWatchLogsDeliveryErrorstring

Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.

LatestCloudWatchLogsDeliveryTimestring date-time

Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.

LatestDigestDeliveryTimestring date-time

Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.

LatestDigestDeliveryErrorstring
<p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error Responses</a> in the Amazon S3 API Reference. </p> <note> <p>This error occurs only when there is a problem with the destination S3 bucket, and does not occur for requests that time out. To resolve the issue, create a new bucket, and then call <code>UpdateTrail</code> to specify the new bucket; or fix the existing objects so that CloudTrail can again write to the bucket.</p> </note>
LatestDeliveryAttemptTimestring

This field is no longer in use.

LatestNotificationAttemptTimestring

This field is no longer in use.

LatestNotificationAttemptSucceededstring

This field is no longer in use.

LatestDeliveryAttemptSucceededstring

This field is no longer in use.

TimeLoggingStartedstring

This field is no longer in use.

TimeLoggingStoppedstring

This field is no longer in use.