esxi_vm_register
Registers an existing .vmx file on a datastore to make the VM manageable in ESXi or vCenter. Use it to add unregistered virtual machines without recreating them.
Instructions
Register an existing .vmx on a datastore (govc vm.register).
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": {
"alias": "<alias>",
"vmx_path": "<vmx_path>"
},
"name": "esxi_vm_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| alias | Yes | ||
| vmx_path | Yes |