Back to top

VPN

VPN Management

Retrieve the client vpn config for current user
GET
/user/vpn

Returns the client vpn config for the currently logged-in user.

  • Parameters
  • code
    string  (required) in query

    Facility code

  •  
  • Response Body Show Hide
  • Request URL Show Hide
  • cURL Show Hide
  • Response  200   ok
  • {
    	"config": "string"
    }
  • Response  401   unauthorized
  • Response  422   unprocessable entity
Turn on vpn for the current user
/user/vpn

Turns on vpn for the currently logged-in user.

  • Response  201   created
  • Response  401   unauthorized
  • Response  422   unprocessable entity
Turn off vpn for the current user
/user/vpn

Turns off vpn for the currently logged-in user.

  • Response  204   no content
  • Response  401   unauthorized
  • Response  422   unprocessable entity