All Products
Search
Document Center

:UpdateSavedQuery

Last Updated:Jun 28, 2024

Updates a custom query template.

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
DescriptionstringNo

The description of the template.

The description must be 1 to 256 characters in length.

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

The name of the template.

  • The name must be 1 to 64 characters in length.
  • The name can contain letters, digits, underscores (_), and hyphens (-).
  • The name must be unique.
Query of All Alibaba Cloud Resources
ExpressionstringNo

The query statement in the template.

SELECT * FROM resources;
QueryIdstringYes

The template ID.

sq-GeAck****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

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

Examples

Sample success responses

JSONformat

{
  "RequestId": "D696E6EF-3A6D-5770-801E-4982081FE4D0"
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform the operation.
409NotExists.QueryIdThe QueryId does not exist.The specified query template ID does not exist.
409LengthExceedLimit.DescriptionThe length of parameter Description exceed limit.The length of the query template description exceeds the limit.
409LengthExceedLimit.ExpressionThe length of parameter Expression exceed limit.The length of the query expression exceeds the limit.
409LengthExceedLimit.NameThe length of parameter Name exceed limit.The length of the query template name exceeds the limit.
409InvalidParameter.NameThe specified parameter Name is not valid.The query template name is invalid.
409AlreadyExists.NameThe Query Template Name already exists.The query template name already exists.

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