hostodo_reinstall_vm
Reinstall a Hostodo VPS to a specified OS template, destroying existing data and returning a one-time root password. Requires confirmation phrase and VM power scope.
Instructions
Destructively reinstall one owned Hostodo VPS to an enabled OS template. Call hostodo_list_templates first to discover valid template_id values. Requires vms:power scope and the exact confirmation phrase: REINSTALL TO TEMPLATE . This deletes and rebuilds the guest disk, starts the VM, and returns a one-time root password.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | Hostodo instance id, hostname, or unique prefix. | |
| ssh_key_id | No | Optional owned SSH key id to inject during reinstall. | |
| template_id | Yes | Enabled OdoPanel template id to reinstall to. | |
| confirmation | Yes | Exact phrase: REINSTALL <vm_id> TO TEMPLATE <template_id>. Example: REINSTALL ins::chud7xorwx TO TEMPLATE 12 |