codeartsdeploy__ListNewHosts
Retrieve the hosts in a specified CodeArts Deploy host cluster by cluster ID, with optional filtering, sorting, and pagination for inventory checks.
Instructions
[CODEARTSDEPLOY] 根据主机集群id查询指定主机集群下的主机列表。
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__ListNewHosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_proxy | No | 是否为代理机 | |
| group_id | Yes | 项目id | |
| sort_dir | No | 排序方式:DESC、ASC,默认为DESC | |
| sort_key | No | 排序字段:as_proxy|host_name|owner_name,不传使用默认排序 | |
| key_field | No | 主机名模糊查询信息 | |
| page_size | No | 每页显示的条目数量,默认为10 | |
| page_index | No | 页码数 | |
| environment_id | No | 环境id |