as__ListResourceInstances
Query Auto Scaling resource instances by project ID and resource type, filtering by tags and returning paginated results or total counts.
Instructions
[AS] 根据项目ID查询指定资源类型的资源实例。资源、资源tag默认按照创建时间倒序。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"project_id": "<project_id>",
"resource_type": "<resource_type>"
},
"name": "as__ListResourceInstances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 过滤条件,包含标签,最多包含10个Tag,结构体不能缺失。 | |
| limit | No | 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。 | |
| action | Yes | 操作标识(仅限filter,count):filter(过滤):即分页查询。count(查询总条数):按照条件将总条数返回即可。 | |
| marker | No | 分页位置标识(资源ID或索引位置)。 | |
| offset | No | (索引位置),从offset指定的下一条数据开始查询。查询第一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。必须为数字,不能为负数。action:count时,无此参数。action:filter时,默认为0 | |
| matches | No | 模糊搜索字段。 | |
| not_tags | No | 过滤条件,不包含标签,最多包含10个Tag。 | |
| tags_any | No | 过滤条件,包含任意标签,最多包含10个Tag。 | |
| project_id | Yes | 项目ID。 | |
| not_tags_any | No | 过滤条件,不包含任意标签,最多包含10个Tag。 | |
| resource_type | Yes | 资源类型,枚举类:SCALING_GROUP_TAG。 |