Reinstall OS
reinstall_osReplace the operating system on a VPS or dedicated server, erasing existing data and snapshots after confirmation; then choose OS version and credentials.
Instructions
Reinstall OS on a VPS or qualified dedicated server. WARNING: destroys existing data; confirm with the user before reinstalling. Cloud VPS and Firecracker VPS: reinstall also deletes existing snapshots, so they cannot provide rollback after reinstall. Read get_os_options.snapshotDeletion first; when snapshots exist, set confirmSnapshotDelete to true only after the user explicitly confirms their deletion. A pending snapshot action blocks reinstall until it finishes. Container VPS has no snapshots. Dedicated servers erase every disk and have no snapshot rollback; get_os_options reports dedicated=true and confirmRequired=true. Pass confirmReinstall=true only after the user explicitly approves reinstalling that exact dedicated server and losing all disk data. Dedicated reinstall supports an optional sshKey from list_ssh_keys (otherwise the prior install key is reused), never rootPassword, and returns a reinstall job ID. VPS reinstall returns a noty UUID for acceptance; follow get_service_history for completion. Password rules: 6-40 chars, alphanumeric, must contain uppercase + lowercase + digit. OAuth requires services:reinstall; API keys require full access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sshKey | No | Dedicated only: account SSH key ID from list_ssh_keys; omitted reuses the installed key. | |
| orderNo | Yes | Tenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1 | |
| osVersion | Yes | OS version ID from get_os_options | |
| rootPassword | No | New root password (auto-generated if omitted). 6-40 chars, alphanumeric, must contain uppercase + lowercase + digit | |
| confirmReinstall | No | Dedicated only: true only after explicit user approval to reinstall this exact server and erase all its disks; never inferred or defaulted. | |
| confirmSnapshotDelete | No | Cloud VPS and Firecracker VPS only: set true only after the user explicitly confirms deletion of the existing snapshots shown by get_os_options.snapshotDeletion. They cannot provide rollback after reinstall. Never inferred or enabled automatically. |