列出虛擬機
list_vmsLists vCenter VMs with computed totals for count, power state, vCPU, and memory; filter by exact or partial name and power state.
Instructions
列出 vCenter 中的虛擬機(VM),並附上算好的彙總。
回傳: total: 符合條件的 VM 台數(要回答「幾台」請直接引用,不要自己數 vms)。 power_state_counts: 依電源狀態分組的台數。 total_cpu_count / total_memory_GiB: 符合條件 VM 的 vCPU 與記憶體配置合計。 vms: 每台 VM 的 id、名稱、電源狀態、CPU 數與記憶體(MiB),依名稱排序。
參數: power_state: 選填,依電源狀態過濾。 name: 選填,VM 名稱完全比對。 name_contains: 選填,名稱包含此關鍵字(不分大小寫)。只知道部分名稱時用這個。
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_vms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| power_state | No | ||
| name_contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vms | Yes | ||
| total | Yes | ||
| total_cpu_count | Yes | ||
| total_memory_GiB | Yes | ||
| power_state_counts | Yes |