Creates a downloadable file of advanced search results for resources in an account group.
Operation description
This topic provides an example of how to query for ECS instances in the account group ca-edd3626622af00b3**** and create a downloadable file of the search results.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:CreateAggregateAdvancedSearchFile |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Sql |
string |
Yes |
The SQL statement for the advanced search. |
SELECT * WHERE ResourceType = 'ACS::ECS::Instance' |
| AggregatorId |
string |
Yes |
The ID of the account group. For more information about how to obtain the ID of an account group, see ListAggregators. |
ca-edd3626622af00b3**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5F290373-2BE6-534B-8724-A33F1116958B |
Examples
Success response
JSON format
{
"RequestId": "5F290373-2BE6-534B-8724-A33F1116958B"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | AccountNotExisted | Your account does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.