Queries the information about a sample query template.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
QueryId | string | Yes | The ID of the template. Note
You can call the ListExampleQueries operation to obtain the template ID.
| sq-0PfKy**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "36A3D9BE-B607-5993-B546-7E19EF65DC00",
"ExampleQuery": {
"QueryId": "sq-0PfKy****",
"Expression": "SELECT\n resource_id,\n resource_name,\n region_id,\n zone_id,\n resource_type,\n account_id,\n create_time,\n resource_group_id,\n tags,\n ip_addresses,\n vpc_id,\n v_switch_id\nFROM\n resources\nORDER BY\n resource_type,\n resource_id\nLIMIT\n 1000 OFFSET 0;",
"Name": "Query of All Alibaba Cloud Resources",
"Description": "Queries all resources on which you have permissions and sorts the resources by resource type and resource ID. "
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
409 | NotExists.QueryId | The QueryId does not exist. | The specified query template ID does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history