Reinstall VM (OS/App)

Reinstall the VM in order to revert it to its vanilla state. When choosing reinstall, you can optionally choose another OS, or one of our Apps.

You will need first to:
• Get the VM ID using List All VM's API call.
• Get the OS/App ID using List All OS's or List All Apps API calls

Warning: Reinstalling a VM will wipe out all data on it, so please proceed with caution.

Request URL Format:

https://api.ssdnodes.com/servers/{vm_id}/reinstall

Header Format:

Authorization: Bearer 123456789123456789123456789123456789
Content-Type: application/json

Request Parameters:

Parameter Values Allowed Default Value Description
vm_id* <VM ID>
N/A
ID of the VM
reinstall_type* [os,app]
N/A
Specifies if an OS or an app will be installed
os_app_id* <OS or App ID>
N/A
ID of the OS or the app to be installed
authentication* [pwd,ssh]
N/A
Specifies the authentication method
ssh_key ssh-rsa <SSH Key>
N/A
If the authentication method was 'ssh' then this specifies the SSH key

Success Response Format:

[ { "status": "success", "msg": "Installing CentOS Stream 8 operating system. The process will take between 5 to 10 minutes.
Check your dashboard or use the API request "List VM Details" for updates." } ]

Error Response Format:

[ { "status": "error", "msg": "Reinstall type should be app or os." } ]

CURL Example

                curl -X POST https://api.ssdnodes.com/servers/1234/reinstall -H "Authorization: Bearer 123456789123456789123456789123456789" -H "Content-Type: application/json" -d "{\"reinstall_type\":\"app\",\"os_app_id\":2,\"authentication\":\"ssh\",\"ssh_key\":\"ssh-rsa 123xxxxxxxxxxxxxxxxxxxxxx\"}"

            

Copied!