{"base_path":null,"components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"Matches":{"description":"","properties":{"key":{"description":"键。暂限定为resource_name。","maxLength":127,"minLength":1,"type":"string"},"value":{"description":"值。为固定字典值。每个值最大长度255个unicode字符。若为空字符串、resource_id时为精确匹配。","maxLength":255,"minLength":1,"type":"string"}},"required":["key","value"]},"QueryTagsOption":{"description":"请求正常","properties":{"action":{"description":"操作标识(仅限filter,count):filter(过滤):即分页查询。count(查询总条数):按照条件将总条数返回即可。","enum":["filter","count"],"type":"string"},"limit":{"description":"查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。","example":"100","type":"string"},"marker":{"description":"分页位置标识(资源ID或索引位置)。","type":"string"},"matches":{"description":"模糊搜索字段。","example":[{"key":"resource_name","values":"resource1"}],"items":{"$ref":"#/definitions/Matches"},"type":"array"},"not_tags":{"description":"过滤条件,不包含标签,最多包含10个Tag。","example":[{"key":"key1","values":["*value1","value2"]}],"items":{"$ref":"#/definitions/TagsMultiValue"},"type":"array"},"not_tags_any":{"description":"过滤条件,不包含任意标签,最多包含10个Tag。","example":[{"key":"key1","values":["value1","value2"]}],"items":{"$ref":"#/definitions/TagsMultiValue"},"type":"array"},"offset":{"description":"(索引位置),从offset指定的下一条数据开始查询。查询第一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。必须为数字,不能为负数。action:count时,无此参数。action:filter时,默认为0","type":"string"},"tags":{"description":"过滤条件,包含标签,最多包含10个Tag,结构体不能缺失。","example":[{"key":"key1","values":["*value1","value2"]}],"items":{"$ref":"#/definitions/TagsMultiValue"},"type":"array"},"tags_any":{"description":"过滤条件,包含任意标签,最多包含10个Tag。","example":[{"key":"key1","values":["value1","value2"]}],"items":{"$ref":"#/definitions/TagsMultiValue"},"type":"array"}},"required":["action"]},"QueryTagsResult":{"properties":{"marker":{"description":"分页位置标识。","example":"2","type":"string"},"resources":{"description":"标签资源实例。","items":{"$ref":"#/definitions/Resources"},"type":"array"},"total_count":{"description":"总记录数。","example":2,"type":"integer"}}},"ResourceTags":{"properties":{"key":{"description":"资源标签值。最大长度36个unicode字符。","type":"string"},"value":{"description":"资源标签值。","type":"string"}}},"Resources":{"properties":{"resource_detail":{"description":"资源详情。","type":"string"},"resource_id":{"description":"资源详情ID。","type":"string"},"resource_name":{"description":"资源名称,没有默认为空字符串。","type":"string"},"tags":{"description":"标签列表,没有标签默认为空数组。","items":{"$ref":"#/definitions/ResourceTags"},"type":"array"}}},"TagsMultiValue":{"properties":{"key":{"description":"资源标签键。最大长度36个unicode字符。key不能为空。(搜索时不对此参数做校验)。最多为10个,不能为空或者空字符串。且不能重复。","maxLength":127,"minLength":1,"type":"string"},"values":{"description":"资源标签值列表,每个值最大长度43个unicode字符,每个key下最多为10个,同一个key中values不能重复。\n\n“*”为系统保留字符,如果value是以“*”开头表示按照“*”后面的值全模糊匹配。不能只传入“*”。\n如果values为空列表但不可缺省,则表示any_value(查询任意value)。value之间为或的关系","items":{"maxLength":255,"minLength":0,"type":"string"},"type":"array"}},"required":["key","values"],"type":"object"}},"description":null,"group_id":"c14e7adea4354f78bb333ea8451df077","host":"as.cn-north-4.myhuaweicloud.com","id":"27e601834aee43e2a098c8cbb72bb22e","info_version":"v1","method":"post","name":"ListResourceInstances","parameters":{},"paths":{"/autoscaling-api/v1/{project_id}/{resource_type}/resource_instances/action":{"post":{"description":"根据项目ID查询指定资源类型的资源实例。资源、资源tag默认按照创建时间倒序。","operationId":"ListResourceInstances","parameters":[{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-order":1},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-order":1},{"description":"资源类型,枚举类:SCALING_GROUP_TAG。","enum":["scaling_group_tag"],"in":"path","name":"resource_type","required":true,"type":"string","x-order":2},{"description":"BodyParameters","in":"body","name":"bodyparam","required":true,"schema":{"$ref":"#/definitions/QueryTagsOption"}}],"responses":{"200":{"description":"请求正常","examples":{"application/json":{"marker":"2","resources":[{"resource_detail":"SCALING_GROUP_TAG","resource_id":"64af4b6f-ec51-4436-8004-7a8f30080c87","resource_name":"as_scaling_group_1","tags":[{"key":"key","value":"value"}]},{"resource_detail":"SCALING_GROUP_TAG","resource_id":"7122ef51-604b-40e7-b9b2-1de4cd78dc60","resource_name":"as_scaling_group_2","tags":[{"key":"key","value":"value"}]}],"total_count":2}},"schema":{"$ref":"#/definitions/QueryTagsResult"}},"400":{"description":"Bad Request 服务器未能处理请求。"},"401":{"description":"Unauthorized 被请求的页面需要用户名和密码。"},"403":{"description":"Forbidden 对被请求的页面访问禁止。"},"404":{"description":"Not Found 服务器无法找到被请求的页面。"},"405":{"description":"Method Not Allowed 请求中指定的方法不被允许。"},"406":{"description":"Not Acceptable 服务器生成的响应无法被客户端所接受。"},"407":{"description":"Proxy Authentication 用户必须首先使用代理服务器进行验证,这样请求才会被处理"},"408":{"description":"Request Timeout 请求超出了服务器的等待时间。"},"409":{"description":"Conflict 由于冲突,请求无法被完成。"},"500":{"description":"Internal Server Error 请求未完成。服务异常。"},"501":{"description":"Not Implemented 请求未完成。服务器不支持所请求的功能。"},"502":{"description":"Bad Gateway 请求未完成。服务器从上游服务器收到一个无效的响应。"},"503":{"description":"Service Unavailable 请求未完成。系统暂时异常。"},"504":{"description":"Gateway Timeout 网关超时。"}},"summary":"查询资源实例","tags":["标签管理"],"x-apiErrorCodes":"","x-apigateway-auth-type":"","x-apigateway-match-mode":"","x-apigateway-request-type":"","x-call_frequency":"","x-constraint":"","x-ctc":"N","x-first_open_time":"2018-09-30","x-flow_control_group":"as","x-hc":"Y","x-hk":"Y","x-hybridcloud":true,"x-iftype":"公开接口","x-in_cli":"","x-is-registered":"Y","x-is_calling":"Y","x-multi_tenant_flow_time":"1","x-multi_tenant_flow_value":"780","x-name":"查询资源实例","x-obc":"N","x-order":4,"x-otc":"Y","x-request-examples-1":"{\n offset: \"100\"\n limit: \"100\"\n action: \"filter\"\n matches:\n - key: \"resource_name\"\n value: \"resource1\"\n not_tags: \n - key: \"key2\"\n values: \"values2\"\n tags:\n - key: \"key1\"\n values: \"values1\"\n}","x-request-examples-description-1":"action为filter时请求样例本示例展示了查询租户下按包含标签key=key1,value=value,不包含key=key2,value=value2,索引位置100,查询最大记录数为100的伸缩组资源信息。","x-request-examples-text-1":"{\n offset: \"100\"\n limit: \"100\"\n action: \"filter\"\n matches:\n - key: \"resource_name\"\n value: \"resource1\"\n not_tags: \n - key: \"key2\"\n values: \"values2\"\n tags:\n - key: \"key1\"\n values: \"values1\"\n}","x-request-examples-url-1":"POST https: //{Endpoint}/autoscaling-api/v1/{project_id}/scaling_group_tag/resource_instances/action","x-scope":"Commercial","x-source":"SelfDeveloped","x-source_url":"","x-support-sdk":"Y","x-tenant_flow_time":"1","x-tenant_flow_value":"78","x-timeout":"10s","x-tlf":"N","x-un_cli":"","x-version":"v1"}}},"product_short":"AS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询资源实例","tags":"标签管理","uri":null,"version":"2.0"}