Runs nc -v -z {host} {port} from the node, binding to the specified source address. Returns the netcat output and exit code.
Use ?wait=1 to block and receive the result synchronously.
Requires nodes::service:tg-nc or nodes::remote-execute permission.
Security
JWTAuthorizer
- Mock serverhttps://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/tg-nc
- https://api.trustgrid.iohttps://api.trustgrid.io/node/{nodeID}/trigger/tg-nc
curl -i -X POST \
'https://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/tg-nc?wait=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"source": "192.168.1.10",
"host": "10.0.0.1",
"port": 443
}'Response
{ "output": { "message": "string", "exitCode": "string" } }