取得虛擬機詳情
get_vmRetrieve detailed information for one virtual machine by vm_id, including CPU, memory, disks, network adapters, power state, and guest OS identity when VMware Tools is running.
Instructions
取得單一虛擬機的詳細資訊。
彙整硬體設定(CPU、記憶體、磁碟、網卡)、電源狀態,以及客體 OS 身分資訊 (需 VM 開機且 VMware Tools 執行中才有客體資訊)。
參數: vm_id: VM 的 managed object id,例如 "vm-123"(可由 list_vms 取得)。
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": {
"vm_id": "<vm_id>"
},
"name": "get_vm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| power | No | ||
| vm_id | Yes | ||
| details | No | ||
| guest_identity | No | ||
| guest_identity_note | No |