VPS_recreateVirtualMachineV1
Reinstall the operating system and reset a virtual machine to its initial state. Use this to rebuild a VPS instance with a fresh OS, deleting all existing data and snapshots.
Instructions
Recreate a virtual machine from scratch.
The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted.
Password Requirements
Password will be checked against leaked password databases. Requirements for the password are:
At least 12 characters long
At least one uppercase letter
At least one lowercase letter
At least one number
Is not leaked publicly
This operation is irreversible and will result in the loss of all data stored on the virtual machine!
Use this endpoint to completely rebuild VPS instances with fresh OS installation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| virtualMachineId | Yes | Virtual Machine ID | |
| template_id | Yes | Template ID | |
| password | No | Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | |
| panel_password | No | Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response. | |
| post_install_script_id | No | Post-install script to execute after virtual machine was recreated |