Skip to content

Instantly share code, notes, and snippets.

@abdallah
Created August 8, 2012 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdallah/3293787 to your computer and use it in GitHub Desktop.
Save abdallah/3293787 to your computer and use it in GitHub Desktop.
Reboot RimuHosting VPS
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment