diff options
Diffstat (limited to 'vps/functions/reboot_vps.sh')
-rwxr-xr-x | vps/functions/reboot_vps.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vps/functions/reboot_vps.sh b/vps/functions/reboot_vps.sh new file mode 100755 index 0000000..2741b9c --- /dev/null +++ b/vps/functions/reboot_vps.sh @@ -0,0 +1,7 @@ +reboot_vps() { + LINODE_ID="$1" + echo "Rebooting Linode VPS ID $LINODE_ID..." + + curl -s -X POST https://api.linode.com/v4/linode/instances/$LINODE_ID/reboot \ + -H "Authorization: Bearer $LINODE_API_TOKEN" | jq +} |