Queries the information about a custom 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 template ID. Note
You can call the ListSavedQueries operation to query the ID.
| sq-GeAck**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6D98D9B0-318D-56A4-910C-93B5F945AF2B",
"SavedQuery": {
"QueryId": "sq-GeAck****",
"Expression": "SELECT * FROM resources;",
"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. ",
"CreateTime": "2023-10-30T01:43:16Z",
"UpdateTime": "2023-10-30T01:43:16Z"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | You are not authorized to perform the operation. |
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.