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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct