VPN

Create VPN server

Use this BillingServ API endpoint to create VPN server. Review the response for the operation result or validation errors.

post/vpn/servers/create

Request body

country_idinteger required
server_namestring required
ip_addressstring ipv4 required
ssh_portinteger required
ssh_usernamestring required
ssh_passwordstring password required
max_connectioninteger required
vpn_typeinteger required

1=OpenVPN, 2=WireGuard, 3=IKEv2, 4=other

vpn_portstring

default, random, or custom

vpn_custom_portstring
vpn_protocolstring

udp or tcp

Response

Created

successboolean

Changes

Changed in 1 of the 6 revisions of this API.17

  • 6b9208b6445617See the full diff
    • removed the success response with the status 200

      response-success-status-removed

    • added the non-success response with the status 400

      response-non-success-status-added

    • removed the non-success response with the status 422

      response-non-success-status-removed

    • added the optional property code to the response with the 401 status

      response-optional-property-added

    • added the optional property code to the response with the 403 status

      response-optional-property-added

    • added the optional property request_id to the response with the 401 status

      response-optional-property-added

    • added the optional property request_id to the response with the 403 status

      response-optional-property-added

    • added the success response with the status 201

      response-success-status-added