Skip to content

Get a VPN's interfaces

Request

Get the list of interfaces attached to a VPN network on a node. Note: NATs within a VPN interface can share the same source and destination CIDRs provided they are differentiated by route metric. This is intentional and not a configuration error.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

networkNamestringrequired

Network name

curl -i -X GET \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/vpn/{networkName}/interface' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
Array [
inDefaultRouteboolean
insideNatsArray of objects
interfaceNamestring
outDefaultRouteboolean
outsideNatsArray of objects

NAT rules for traffic leaving the VPN network (outbound). Maps VPN-side CIDRs to local node CIDRs.

networkNamestring
nodeUidstring
]
Response
[ { "inDefaultRoute": true, "insideNats": [], "interfaceName": "string", "outDefaultRoute": true, "outsideNats": [], "networkName": "string", "nodeUid": "string" } ]