Skip to content

Capture packets on the node using tcpdump

Request

Starts a streaming tcpdump capture session on the node. Captured packet details stream as text output. Use ?wait=1 to buffer until the capture ends.


Requires nodes::service:tg-tcpdump 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
Bodyapplication/json
property name*anyadditional property
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/tg-tcpdump?wait=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

OK

Bodyapplication/json
boolean
Response
true