How do I restart my Linode via the API?
afolksetapart
Linode Staff
How do I use the API to restart my Linode?
3 Replies
afolksetapart
Linode Staff
Does anyone know the answer?
cmcfarland
Linode Staff
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.
afolksetapart
Linode Staff