Sends an event to the node and optionally waits for its response. Use the dedicated event endpoints (e.g. /node/{nodeID}/trigger/gateway-routes) for documented events with typed request and response schemas.
For event=bgp, the backend currently supports:
action: get— return BGP runtime status, peer sessions, learned routes, rejected routes, and advertised prefixesaction: restart— restart the BGP service on the node
Add ?wait=1 to block until the node responds (useful for synchronous checks).
All services require either nodes::remote-execute or nodes::service:{event} permission.
Security
JWTAuthorizer
- Mock serverhttps://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/{event}
- https://api.trustgrid.iohttps://api.trustgrid.io/node/{nodeID}/trigger/{event}
curl -i -X POST \
'https://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/gateway-routes?wait=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"cmd_action": "start",
"name": "mycontainer"
}'