Queries the details about an advanced query template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
actiontrail:GetAdvancedQueryTemplate |
get |
*AdvancedQueryTemplate
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
utpl-N9fpjnFBSWauSXhVNP**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
32110C73-0004-5141-9DA7-4B8045C8173A |
| SimpleQuery |
boolean |
Indicates whether the simple query mode is enabled. Valid values:
|
false |
| TemplateId |
string |
The template ID. |
utpl-N9fpjnFBSWauSXhVNP**** |
| TemplateName |
string |
The template name. |
example-template |
| TemplateSql |
string |
The query statement. |
event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: * |
If the API response contains only a RequestId and no other information, such as SimpleQuery, TemplateName, or TemplateSql, it indicates that the TemplateId you specified is invalid. Check that the TemplateId is in the correct format and confirm that it exists in the system.
Examples
Success response
JSON format
{
"RequestId": "32110C73-0004-5141-9DA7-4B8045C8173A",
"SimpleQuery": false,
"TemplateId": "utpl-N9fpjnFBSWauSXhVNP****",
"TemplateName": "example-template",
"TemplateSql": "event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.