ListDataEventSelectors
Lists all data event selectors.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
actiontrail:ListDataEventSelectors |
get |
*Trail
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The pagination cursor used to request the next page of results.
|
VjE6dLbnNpVmbz06**** |
| MaxResults |
integer |
No |
The maximum number of results to return.
|
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Data |
object |
The returned results. |
|
| DataEventSelectorInfos |
array<object> |
The list of data event selector information. |
|
|
array<object> |
|||
| EventSelectors |
string |
The data event selector configurations, represented as a JSON array with a maximum size of 20. Field description for each element in the JSON array:
|
[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}] |
| IsTrailAllRegion |
boolean |
Indicates whether the trail applies to all regions. |
true |
| SlsDeliveryConfigs |
array<object> |
The list of Simple Log Service delivery configurations. |
|
|
object |
The Simple Log Service delivery configuration information. |
||
| CreateTime |
string |
The creation time of the initialization record for the Simple Log Service delivery resource in the current region. The time follows the ISO 8601 standard in the UTC time zone and is in the yyyy-MM-dd'T'HH:mm:ss'Z' format. |
2023-09-30T16:11Z |
| ErrorCode |
string |
The error code returned when resource initialization fails. |
LogServiceException |
| ErrorMessage |
string |
The error message returned when resource initialization fails. |
RequestError Web request failed. |
| RegionSlsProjectArn |
string |
The ARN of the regional Simple Log Service project for trail delivery. |
acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai |
| Status |
string |
The resource initialization status of the trail. |
success |
| TrailRegion |
string |
The region of the trail. |
cn-shanghai |
| TrailArn |
string |
The ARN of the trail. |
acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name |
| TrailName |
string |
The name of the trail. |
trail-name |
| MaxResults |
integer |
The maximum number of records returned for the current request. |
20 |
| NextToken |
string |
The pagination token returned when the query does not return all matching data. You can use NextToken to retrieve the remaining data. This parameter is not required for the first query. |
VjE6bHJlTGoxdm1M**** |
| RequestId |
string |
The request ID. |
8A74FD2E-A9B9-461C-BCE9-D9668DF1**** |
In EventName, the total number of data elements in Equals and NotEquals cannot exceed 10. The same rule applies to ResourceArn.
Examples
Success response
JSON format
{
"Data": {
"DataEventSelectorInfos": [
{
"EventSelectors": "[{\"EventName\":{\"Equals\":[\"GetObject\",\"CopyObject\",\"AppendObject\"]},\"ReadWriteType\":\"All\",\"ServiceName\":\"Oss\"}]",
"IsTrailAllRegion": true,
"SlsDeliveryConfigs": [
{
"CreateTime": "2023-09-30T16:11Z",
"ErrorCode": "LogServiceException",
"ErrorMessage": "RequestError Web request failed.",
"RegionSlsProjectArn": "acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai",
"Status": "success",
"TrailRegion": "cn-shanghai"
}
],
"TrailArn": "acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name",
"TrailName": "trail-name"
}
],
"MaxResults": 20,
"NextToken": "VjE6bHJlTGoxdm1M****"
},
"RequestId": "8A74FD2E-A9B9-461C-BCE9-D9668DF1****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.