Runs nc -v -z {host} {port} inside the management namespace for the specified virtual network, testing connectivity as seen from that network context.
Use ?wait=1 to block and receive the result synchronously.
Requires nodes::service:tg-net-nc or nodes::remote-execute permission.
Security
JWTAuthorizer
- Mock serverhttps://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/tg-net-nc
- https://api.trustgrid.iohttps://api.trustgrid.io/node/{nodeID}/trigger/tg-net-nc
curl -i -X POST \
'https://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/tg-net-nc?wait=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"network": "virtual-network",
"host": "10.0.0.1",
"port": 80
}'Response
{ "output": { "message": "string", "exitCode": "string" } }