codeartsdeploy__ListHosts
Lists hosts in a specified CodeArts Deploy host cluster by cluster ID, with optional host name, proxy status, pagination, and sorting filters.
Instructions
[CODEARTSDEPLOY] 根据主机集群id查询指定主机集群下的主机列表。该接口于2024年09月30日后不再维护,推荐使用新版ListNewHosts接口。
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": {
"group_id": "<group_id>"
},
"name": "codeartsdeploy__ListHosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 主机名,可输入中英文,数字和符号(-_.) | |
| limit | No | 每页显示的条目数量,默认为1000 | |
| offset | No | 偏移量,表示从此偏移量开始查询,offset大于等于0 | |
| as_proxy | No | 是否为代理机 | |
| group_id | Yes | 主机集群id | |
| sort_dir | No | 排序方式,默认为:DESC。DESC:降序排序。ASC:升序排序 | |
| sort_key | No | 排序字段,支持:AS_PROXY|HOST_NAME|OS|OWNER_NAME|as_proxy|host_name|os|owner_name|nickName。不填默认为:as_proxy | |
| with_auth | No | 返回结果是否加密 |