Skip to content

Reboot the node's host operating system

Request

Schedules a host OS reboot (shutdown -r now) to execute 5 seconds after this call is acknowledged. The node will disconnect and come back online after completing its boot sequence.


Requires nodes::service:node-reboot or nodes::remote-execute permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

Query
waitinteger

Pass 1 to block until the node responds and return its output.

Value:1
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/node-reboot?wait=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
outputobject
Response
{ "output": { "message": "Node host will restart" } }