{"base_path":null,"components":{"parameters":{"AuthToken":{"description":"用户Token。\n获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"schema":{"type":"string"}},"DomainId":{"description":"帐号ID","in":"path","name":"domain_id","required":true,"schema":{"maxLength":36,"pattern":"[\\w-]+","type":"string"}},"QueryId":{"description":"查询ID","in":"path","name":"query_id","required":true,"schema":{"maxLength":36,"pattern":"[\\w-]+","type":"string"}}},"schemas":{"ErrorResp":{"description":"异常错误","properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误消息内容","type":"string"}},"type":"object"},"StoredQuery":{"properties":{"created":{"description":"ResourceQL 创建时间","type":"string"},"description":{"description":"ResourceQL 描述","type":"string"},"expression":{"description":"ResourceQL 表达式","type":"string"},"id":{"description":"ResourceQL ID","type":"string"},"name":{"description":"ResourceQL 名字","type":"string"},"updated":{"description":"ResourceQL 更新时间","type":"string"}},"type":"object"},"StoredQueryRequestBody":{"properties":{"description":{"description":"ResourceQL 描述","maxLength":512,"minLength":0,"type":"string"},"expression":{"description":"ResourceQL 表达式","maxLength":4096,"minLength":1,"type":"string"},"name":{"description":"ResourceQL 名字","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_\\-]+","type":"string"}},"required":["name","expression"],"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"71684d03de7545d7bdc1ae5caf95614f","host":"rms.myhuaweicloud.com","id":"a09518befeaf4b70b710bf37aded8e3b","info_version":"v1","method":"put","name":"UpdateStoredQuery","parameters":null,"paths":{"/v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}":{"put":{"description":"更新自定义查询","operationId":"UpdateStoredQuery","parameters":[{"$ref":"#/components/parameters/AuthToken"},{"$ref":"#/components/parameters/DomainId"},{"$ref":"#/components/parameters/QueryId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoredQueryRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoredQuery"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"输入参数不合法"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"用户认证失败"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"未找到资源"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"服务器内部错误"}},"security":[{"PkiTokenAuth":[]}],"summary":"更新单个高级查询","tags":["Query"],"x-is-registered":"Y","x-publishpath":"rms_04_0705","x-support-sdk":"Y"}}},"product_short":"RMS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更新单个高级查询","tags":"高级查询","uri":null,"version":"3.0.0"}