Skip to content

Restart the IPsec daemon on the node

Request

Executes ipsec restart on the node and streams the output. Use ?wait=1 to block until the command completes.


Requires nodes::service:ipsec-restart 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/ipsec-restart?wait=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
boolean
Response
true