Safely Rebooting RimuHosting VPS (via API)

First, get the API keys from the control panel at
API Keys page

The documentation for the API can be found here

So to reboot, I use the following script:

curl -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: rimuhosting apikey=$APIKEY" -X PUT -d '{"reboot_request": {"running_state": "RESTARTING"}}'$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.