列出 ESXi 主機
list_hostsLists ESXi hosts managed by vCenter with connection and power states, plus counts grouped by status. Optionally filter hosts by connection state.
Instructions
列出 vCenter 管理的 ESXi 主機,並附上依狀態分組的台數。
回傳 total(主機台數,直接引用)、connection_state_counts、power_state_counts, 以及每台主機的 id、名稱、連線狀態與電源狀態(依名稱排序)。
參數: connection_state: 選填,依連線狀態過濾。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | Yes | ||
| total | Yes | ||
| power_state_counts | Yes | ||
| connection_state_counts | Yes |