Safely Rebooting RimuHosting VPS (via API)

First, get the API keys from the control panel at https://rimuhosting.com/cp/apikeys.jsp
API Keys page

The documentation for the API can be found here

So to reboot, I use the following script:

#!/bin/bash 
APIKEY=00000000000000000000000000
VPSOID=0000000
VPSNAME=whatever
curl -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: rimuhosting apikey=$APIKEY" -X PUT -d '{"reboot_request": {"running_state": "RESTARTING"}}' https://rimuhosting.com/r/orders/order-$VPSOID-$VPSNAME/vps/running-state

That seems to be much safer than running: sudo reboot

Similar Posts:

    None Found




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published.