Services/VPN

Endpoints related to managing an environment's VPN service.

Get VPN Service

Requires the environments-vpn capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
environmentId
required
string

The environmentId where the VPN resides.

Responses
200

Returns the VPN service.

default

General error response from the platform

get/v1/environments/{environmentId}/services/vpn
Response samples
application/json
{
  • "data": {
    }
}

Get VPN Logins

Requires the environments-vpn capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
environmentId
required
string

The environmentId where the VPN resides.

query Parameters
sort
Array of strings

An array of sort values. To sort descending, put a - in front of the value, e.g. -id.

object

In a list return, the data associated with the page number and size returned. 20 results per page, page 2 would be page[size]=20&page[number]=2

Responses
200

Returns a VPNInfo resource.

default

General error response from the platform

get/v1/environments/{environmentId}/services/vpn/logins
Response samples
application/json
{
  • "data": [
    ]
}

List VPN Users

Requires the environments-vpn-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
environmentId
required
string

The environmentId where the VPN service resides.

Responses
200

Returns a list of VPN users for the given VPN.

default

General error response from the platform

get/v1/environments/{environmentId}/services/vpn/users
Response samples
application/json
{
  • "data": [
    ]
}

Create VPN User

Requires the environments-vpn-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
environmentId
required
string

The environmentId where the VPN service resides.

Request Body schema: application/json

Parameters for creating a new VPN user.

username
required
string
password
required
string
Responses
201

Returns a VPN User.

default

General error response from the platform

post/v1/environments/{environmentId}/services/vpn/users
Request samples
application/json
{
  • "username": "string",
  • "password": "string"
}
Response samples
application/json
{
  • "data": {
    }
}

Delete VPN User

Requires the environments-vpn-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
environmentId
required
string

The environmentId where the VPN service the given user belongs to resides.

userId
required
string

The userId of the user to be deleted.

Responses
200

Returns no data.

default

General error response from the platform

delete/v1/environments/{environmentId}/services/vpn/users/{userId}
Response samples
application/json
{
  • "data": "string"
}

Create VPN Service Job

Used to reconfigure or reset the Environment VPN. Requires the environments-vpn-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
environmentId
required
string

The ID of the Environment the VPN service resides in.

Request Body schema: application/json

The task contents used to build the Environment VPN Job.

action
required
string

The name of the action to perform.

Responses
202

Returns a Job Descriptor.

default

General error response from the platform

post/v1/environments/{environmentId}/services/vpn/tasks
Request samples
application/json
{
  • "action": "reset"
}
Response samples
application/json
{
  • "data": {
    }
}