Skip to content

Attach a VPN network

Request

Security
JWTAuthorizer
Path
clusterFQDNstringrequired

Cluster FQDN

Bodyapplication/jsonrequired
ipstring
namestring
routestring
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/cluster/{clusterFQDN}/vpn' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "ip": "string",
    "name": "string",
    "route": "string"
  }'

Responses

OK

Bodyapplication/json
dnsobject(VpnClusterDnsModel)
exportRoutesArray of objects(VpnNodeRouteModel)
importRoutesArray of objects(VpnNodeRouteModel)
interfacesArray of objects(VpnClusterInterfaceModel)
routestring
routesArray of objects(VpnClusterRouteModel)
servicesArray of objects(VpnClusterServiceModel)
Response
{ "dns": { "enabled": true, "upstream": [ … ], "fqdn": "string", "networkName": "string" }, "exportRoutes": [ { … } ], "importRoutes": [ { … } ], "interfaces": [ { … } ], "route": "string", "routes": [ { … } ], "services": [ { … } ] }