Manages the X25519 Wireguard private key for a virtual network interface.
get— returns the current public key as a JWKgenerate— generates a new private key, saves it, and returns the public keysave— saves the provided base64-encoded 32-byte private key and returns the public key
Requires nodes::service:vpn-key or nodes::remote-execute permission.
Security
JWTAuthorizer
- Mock serverhttps://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/vpn-key
- https://api.trustgrid.iohttps://api.trustgrid.io/node/{nodeID}/trigger/vpn-key
curl -i -X POST \
'https://apidocs.trustgrid.io/_mock/node/{nodeID}/trigger/vpn-key?wait=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"action": "get",
"network": "virtual-network",
"key": "dGhpcyBpcyBhIDMyLWJ5dGUgcHJpdmF0ZSBrZXk="
}'Response
{ "output": { "kid": "string", "kty": "EC", "crv": "X25519", "x": "string" } }