Created
August 8, 2012 09:36
-
-
Save abdallah/3293787 to your computer and use it in GitHub Desktop.
Reboot RimuHosting VPS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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