Queries event details.
Operation description
When you call this operation to query event details, you can query the event details at most twice per second.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
actiontrail:LookupEvents | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
NextToken | string | No | The token used to request the next page of query results. Note
The request parameters must be the same as those of the last request.
| eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD**** |
MaxResults | string | No | The maximum number of entries to be returned. Valid values: 0 to 50. | 20 |
StartTime | string | No | The beginning of the time range to query. The default time is seven days prior to the current time. Specify the time in the ISO 8601 standard in the | 2020-10-08T11:00:00Z |
EndTime | string | No | The end of the time range to query. The default time is the current time. Specify the time in the ISO 8601 standard in the | 2020-10-15T11:00:00Z |
Direction | string | No | The order in which details of events are to be retrieved. Valid values:
| BACKWARD |
LookupAttribute | array<object> | No | Query conditions. | |
object | No | test | ||
Key | string | No | The key of the query condition. Valid values:
Note
You can use only one query condition for each query.
| ServiceName |
Value | string | No | The value of the query condition. Valid values:
| Ecs |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"EndTime": "2020-07-22T14:00:00Z",
"NextToken": "eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****",
"RequestId": "FD79665A-CE8B-49D4-82E6-5EE2E0E791DD",
"Events": [
{
"test": "test",
"test2": 1
}
],
"StartTime": "2020-07-15T14:00:00Z"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IncompleteSignature | The request signature does not conform to Alibaba Cloud standards. | The request signature does not conform to Alibaba Cloud standards. |
400 | InvalidParameterCombination | The end time must be later than the start time. | The end time must be greater than the start time. |
400 | InvalidQueryParameter | The specified query parameter is invalid. | The specified query parameter is not valid. |
400 | InvalidParameterEndTime | The specified EndTime is invalid. | - |
400 | InvalidParameterStartTime | The specified StartTime is invalid. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|