You can call this operation to query the status of a trail.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetTrailStatus |
The operation that you want to perform. Set the value to GetTrailStatus. |
Name | String | Yes | trail-test |
The name of the trail. The name must be 6 to 36 characters in length. It must start with a letter and can contain letters, digits, hyphens (-), and underscores (_). Note The name must be unique under the account.
|
Response parameters
Prameter | Type | Sample response | Description |
---|---|---|---|
RequestId | String | 145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0 |
The ID of the request. |
IsLogging | Boolean | True |
Indicates whether logging is enabled for the trail. |
LatestDeliveryTime | String | 1547792223000 |
The most recent time when an event was delivered for the trail. |
StartLoggingTime | String | Wed Dec 02 15:41:06 CST 2015 |
The most recent date and time when logging was enabled for the trail. |
StopLoggingTime | String | Wed Dec 03 15:41:06 CST 2015 |
The most recent date and time when logging was disabled for the trail. |
LatestDeliveryError | String | write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 |
The log information for the last failed delivery. |
Examples
Sample requests
http(s)://[Endpoint]/? Name=trail-test
&<Common request parameters>
Sample success responses
XML
format
<RequestId>BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>
<IsLogging>true</IsLogging>
<StartLoggingTime>Wed Dec 02 15:41:06 CST 2015</StartLoggingTime>
JSON
format
{
"RequestId": "BE-DEE1-4C57-AA7C-5BE7D34A6AE0",
"IsLogging": true,
"StartLoggingTime": "Wed Dec 02 15:41:06 CST 2015"
}
Error codes
For a list of error codes, visit the API Error Center.