All Products
Search
Document Center

Resource Management:ListSavedQueries

Last Updated:Jun 28, 2024

Queries all custom query templates.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
MaxResultsstringNo

The maximum number of entries per page.

Valid values: 1 to 50.

Default value: 50.

10
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

eyJzZWFyY2hBZnRlcnMiOlsiMTAwMTU2Nzk4MTU1OSJd****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

D696E6EF-3A6D-5770-801E-4982081FE4D0
MaxResultsstring

The maximum number of entries per page.

10
NextTokenstring

The pagination token that is used in the next request to retrieve a new page of results.

AAAAARfZmVDe9NvRXloR5+8CK9nNJufMdRA7W1miLC1P****
SavedQueriesobject []

The information about the custom query templates.

QueryIdstring

The template ID.

sq-GeAck****
Namestring

The template name.

Query of All Alibaba Cloud Resources
Descriptionstring

The description of the template.

Queries all resources on which you have permissions and sorts the resources by resource type and resource ID.
CreateTimestring

The time when the template was created. The time is displayed in UTC.

2022-01-13T05:50:35Z
UpdateTimestring

The time when the template was updated. The time is displayed in UTC.

2023-03-14 10:27:07

Examples

Sample success responses

JSONformat

{
  "RequestId": "D696E6EF-3A6D-5770-801E-4982081FE4D0",
  "MaxResults": "10",
  "NextToken": "AAAAARfZmVDe9NvRXloR5+8CK9nNJufMdRA7W1miLC1P****",
  "SavedQueries": [
    {
      "QueryId": "sq-GeAck****",
      "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": "2022-01-13T05:50:35Z",
      "UpdateTime": "2023-03-14 10:27:07"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform the operation.

For a list of error codes, visit the Service error codes.