Reinstall a VM
Replaces the OS disk with a fresh copy of the chosen image and resets the hostname, cloud-init user, password and SSH keys. All data on the OS disk is lost; the VM must be stopped first. The disk keeps its previous size, and IP addresses stay the same. The request waits until the reinstall finishes. The new image must have the same firmware type (BIOS or UEFI) as the current one.
Authorization
bearerAuth API key created in the portal (Settings → API Keys). Send as Authorization: Bearer <key>.
In: header
Path Parameters
Project UUID.
VM identifier (VMID).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Fields to reinstall the operating system of a virtual machine.
Response Body
application/json
curl -X POST "https://example.com/cloud/project/string/vm/0/reinstall/" \ -H "Content-Type: application/json" \ -d '{ "hostname": "string", "password": "string", "os_image": "string" }'{ "message": "string", "task_id": "string", "start_task_id": "string"}