How do I restart my Linode via the API?
How do I use the API to restart my Linode?
3 Replies
Does anyone know the answer?
Hi there — we have an existing Community question that details how to reboot your Linode via the API, here's the relevant snippet of the API call from that post:
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST \
https://api.linode.com/v4/linode/instances/$LINODEID/reboot
As also called out in that post, you will need to replace $TOKEN with your API token, and $LINODEID with your Linode's ID.
Try this: https://www.linode.com/docs/api/