Create a new Wireguard tunnel
  • 22 Nov 2023
  • 1 Minute to read
  • Contributors

    Create a new Wireguard tunnel


      Article summary

      Post
      /v2/networks/{networkId}/tunnels/wireguard

      Required permissions: ["network:write"]

      Security
      Http
      Type bearer
      Path parameters
      networkId
      stringRequired
      Body parameters
      object
      remoteEndpoint
      string (ipv4) Required
      remoteSubnets
      Array of stringRequired
      string
      regionID
      string Required

      Region ID

      gatewayID
      string Required

      Gateway ID

      tunnelName
      string Required

      The name of the tunnel

      Max length15
      Min length3
      Pattern^[a-zA-Z0-9]*$
      Responses
      202

      Request accepted

      object
      statusUrl
      string
      samplingTime
      integer
      401

      Unauthorized

      object
      id
      string
      message
      string
      402

      Insufficient licenses

      object
      id
      string
      message
      string
      403

      Forbidden

      object
      id
      string
      message
      string
      404

      Resource not found

      object
      id
      string
      message
      string
      422

      Unprocessable entity

      object
      id
      string
      message
      string

      Was this article helpful?