https://api.ssdnodes.com/servers/{vm_id}/reinstall
Authorization: Bearer 123456789123456789123456789123456789
Content-Type: application/json
Parameter | Values Allowed | Default Value | Description |
---|---|---|---|
vm_id* | <VM ID> | ID of the VM | |
reinstall_type* | [os,app] | Specifies if an OS or an app will be installed | |
os_app_id* | <OS or App ID> | ID of the OS or the app to be installed | |
authentication* | [pwd,ssh] | Specifies the authentication method | |
ssh_key | ssh-rsa <SSH Key> | If the authentication method was 'ssh' then this specifies the SSH key |
[
{
"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."
}
]
[
{
"status": "error",
"msg": "Reinstall type should be app or os."
}
]
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!