PutInsightSelectors
Sets the insight event types to be delivered for a trail.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
actiontrail:PutInsightSelectors |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TrailName |
string |
Yes |
The name of the trail. |
trail-name |
| InsightSelectors |
string |
No |
The array of insight event types in JSON format. |
[{"insightType":"AkInsight"},{"insightType":"IpInsight"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InsightSelectors |
array |
The array of insight event types. |
|
|
string |
The insight event type in JSON format. |
{"insightType":"AkInsight"} |
|
| RequestId |
string |
The request ID. |
7EC26DF0-35AC-5F37-82B3-F5545D0A**** |
| TrailArn |
string |
The ARN of the trail. |
acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name |
Examples
Success response
JSON format
{
"InsightSelectors": [
"{\"insightType\":\"AkInsight\"}"
],
"RequestId": "7EC26DF0-35AC-5F37-82B3-F5545D0A****",
"TrailArn": "acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InsightSelectorDoesNotExistException | The special Selector is not existed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.