cbr__ShowVaultResourceInstances
Filter CBR vault resource instances by tags to return matching records or total counts for inventory and compliance checks.
Instructions
[CBR] 使用标签过滤实例
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>"
},
"name": "cbr__ShowVaultResourceInstances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 包含标签。 | |
| limit | No | 查询记录数(action为count时无此参数)如果action为filter时,默认为1000,limit最小值为1,limit最大值为1000, 不在范围内报错。返回的结果中记录数不超过limit。 | |
| action | Yes | 操作标识取值范围为:"filter", "count"。如果是filter就是分页查询,如果是count只需按照条件将总条数返回即可 | |
| offset | No | 索引位置(action为count时无此参数)如果action为filter时,默认为0,offset最小值为0。返回的结果中第一条记录为符合查询条件的第offset+1条记录。 | |
| matches | No | 资源本身支持的查询条件。 | |
| not_tags | No | 不包含标签。 | |
| sys_tags | No | 仅op_service权限可以使用此字段做资源实例过滤条件。 | |
| tags_any | No | 包含任一标签。 | |
| cloud_type | No | 云类型 | |
| project_id | Yes | 项目id | |
| object_type | No | 资源类型 | |
| not_tags_any | No | 不包含任一标签。 | |
| without_any_tag | No | 不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”、“tags_any”、“not_tags”、“not_tags_any”字段。 |