API

HyperSec HyperCollector API

The HyperSec HyperCollector API is provided by the collector-api service. The service by default is bound to http://localhost:3001.

Login

post

Get the JWT for a user with data from OAuth2 request form body.

Body
grant_typestringOptionalPattern: password
usernamestringRequired
passwordstringRequired
scopestringOptionalDefault: ""
client_idstringOptional
client_secretstringOptional
otpstringOptional
Responses
200

Successful Response

application/json
post
/api/v1/auth/login

Read Users Me

get

Fetch the current logged-in user.

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/auth/me

Create User Signup

post

Create new user without the need to be logged in.

Body
first_namestringOptional
surnamestringOptional
emailstring · emailRequired
is_superuserbooleanOptionalDefault: false
is_approvedbooleanOptionalDefault: false
otp_secretstringOptional
passwordstringRequired
Responses
post
/api/v1/auth/signup

Update Password

put

password change for authenticated user

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
emailstringRequired
current_passwordstringRequired
new_passwordstringRequired
Responses
200

Successful Response

application/json
put
/api/v1/usermgmt/password

Get All Users

get

for admin-role only: Fetch the all users

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/usermgmt/users

Update User

put

for admin-role only: update user

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
emailstringRequired
Body
first_namestringOptional
surnamestringOptional
is_superuserbooleanOptionalDefault: false
is_approvedbooleanOptionalDefault: false
otp_secretstringOptional
Responses
200

Successful Response

application/json
put
/api/v1/usermgmt/users

Get Pending Users

get

for admin-role only: Fetch the all pending users

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/usermgmt/users/pending

Get Approved Users

get

for admin-role only: Fetch the all approved users

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/usermgmt/users/approved

Fetch System Hostname

get

Get system hostname

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/hostname
200

Successful Response

Update System Hostname

put

Update the system hostname.

Authorizations
OAuth2passwordRequired
Token URL:
Body
hostnamestringRequired
Responses
put
/api/v1/system/hostname

Fetch Org Id

get

Get org id

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/org_id
200

Successful Response

Update System Org Id

put

Update the system hostname.

Authorizations
OAuth2passwordRequired
Token URL:
Body
org_idstringRequired
Responses
put
/api/v1/system/org_id

Fetch Site Id

get

Get site id

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/site_id
200

Successful Response

Update System Site Id

put

Update the system hostname.

Authorizations
OAuth2passwordRequired
Token URL:
Body
site_idstringRequired
Responses
put
/api/v1/system/site_id

Fetch Timezone

get

Get timezone id

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/timezone
200

Successful Response

Update System Timezone

put

Update the system hostname.

Authorizations
OAuth2passwordRequired
Token URL:
Body
timezonestringRequired
Responses
put
/api/v1/system/timezone

Fetch System Uptime

get

Get system uptime since last boot

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/uptime
200

Successful Response

Fetch Network Ip Addresses

get

Get IP Usage Information for system

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/ip_addresses
200

Successful Response

Fetch Users

get

Get IP Usage Information for system

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/users

Fetch System Partitions

get

Retrieve partition usage on the system (real partitions)

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/partitions
200

Successful Response

Fetch System Information

get

Fetch all system information in one hit

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/system/

Setup Network Time Protocol

post

Setup Network Time Protocol

Authorizations
OAuth2passwordRequired
Token URL:
Body
Responses
200

Successful Response

application/json
post
/api/v1/networks/ntp

Delete Network Time Protocol

delete

Delete Network Time Protocol

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
ip_addressstringRequired
Responses
200

Successful Response

application/json
delete
/api/v1/networks/ntp

Fetch All Network Time Protocol

get

Get all Network Time Protocol

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/networks/ntps
200

Successful Response

Fetch All Domain Name System

get

Get all Domain Name Systems

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/networks/dns
200

Successful Response

Setup Domain Name System

post

Add Domain Name System

Authorizations
OAuth2passwordRequired
Token URL:
Body
Responses
200

Successful Response

application/json
post
/api/v1/networks/dns

Delete Domain Name System

delete

Delete Domain Name System

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
ip_addressstringRequired
Responses
200

Successful Response

application/json
delete
/api/v1/networks/dns

Create Static Route

post

Route all traffic

Authorizations
OAuth2passwordRequired
Token URL:
Body
Responses
200

Successful Response

application/json
post
/api/v1/networks/static-route

Delete Static Route

delete

Delete Static Route

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
static_route_idintegerRequired
Responses
200

Successful Response

application/json
delete
/api/v1/networks/static-route

Fetch Static Routes

get

Get all Static Routes

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/networks/static-routes
200

Successful Response

Fetch Ip Address Management

get

Get IP Address Event Receiver and Management Interfaces

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/networks/ip-mgmt
200

Successful Response

Setup Ip Address Management

post

Add IP Address Event Receiver and Management Interfaces

Authorizations
OAuth2passwordRequired
Token URL:
Body
Responses
200

Successful Response

application/json
post
/api/v1/networks/ip-mgmt

Update Ip Address Management

put

Update ip management in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Body
Responses
put
/api/v1/networks/ip-mgmt

Delete Ip Address Management

delete

Delete IP Management Data

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
ip_typestringOptionalDefault: mgmt or event
Responses
200

Successful Response

application/json
delete
/api/v1/networks/ip-mgmt

Fetch Syslog Ports

get

Fetch all syslog port mappings

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/syslog/port
200

Successful Response

Create Syslog Port

post

Create a new syslog port listener in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Body
idintegerOptional
portintegerOptional
labelstringOptional
Responses
post
/api/v1/syslog/port

Update Syslog Port

put

Update a syslog port listener in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Body
idintegerOptional
portintegerOptional
labelstringOptional
Responses
put
/api/v1/syslog/port

Delete Syslog Port

delete
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
portstringRequired
Responses
200

Successful Response

application/json
delete
/api/v1/syslog/port/{port}

Fetch Service

get

Fetch a single service by Name

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
namestringRequired
Responses
200

Successful Response

application/json
get
/api/v1/service/{name}

Update Service

put

Update service in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
namestringRequired
Body
namestringOptionalDefault: service name
typestringOptionalDefault: either source or sink
modulestringOptionalDefault: module
enabledbooleanOptionalDefault: false
is_defaultbooleanOptionalDefault: false
Responses
put
/api/v1/service/{name}

Delete Service

delete

Delete service in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
namestringRequired
Responses
200

Successful Response

application/json
delete
/api/v1/service/{name}

Fetch Services

get

Fetch all services

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/service/
200

Successful Response

Create Service

post

Create a new syslog port listener in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Body
namestringOptionalDefault: service name
typestringOptionalDefault: either source or sink
modulestringOptionalDefault: module
enabledbooleanOptionalDefault: false
is_defaultbooleanOptionalDefault: false
Responses
post
/api/v1/service/

Upload Cert

post

Upload/Create new certificate

Authorizations
OAuth2passwordRequired
Token URL:
Body
filestring · binaryRequired
file_typeundefined · enumRequired

An enumeration.

Possible values:
Responses
post
/api/v1/certs/upload

Update Cert

put

Update filename in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Body
filenamestringOptional
Responses
put
/api/v1/certs/{id}

Delete Cert

delete

Delete certificates in the database and on disk.

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
cert_idintegerRequired
Responses
200

Successful Response

application/json
delete
/api/v1/certs/{id}

Download Cert

get

Download certificate in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Responses
200

Successful Response

application/json
get
/api/v1/certs/download/{id}

Fetch Certs

get

Fetch all syslog port mappings

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/certs/
200

Successful Response

Export Collector Configuration

get

Manually export a collector configuration backup file (.yaml)

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
Responseany
get
/api/v1/hypercloud/export
200

Successful Response

No content

Restore Collector Configuration

post

Restore Collector configuration from your configuration backup file (.yaml).

Authorizations
OAuth2passwordRequired
Token URL:
Body
config_yamlstring · binaryRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/v1/hypercloud/restore

No content

Run Ansible Playbook

post

Run ansible-playbook on config yml

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
Responseobject · ResponseRunAnsiblePlaybookApiV1HypercloudAnsiblePost
post
/api/v1/hypercloud/ansible
200

Successful Response

Fetch Static Events

get

Fetch all static_events available for sinks

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/events/static
200

Successful Response

Fetch Dynamic Events

get

Fetch all dynamic_events available for sinks (syslog ports)

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/events/dynamic
200

Successful Response

Get Vpn

get

Get vpn file details

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/vpn
200

Successful Response

Upload Vpn

post

Upload/Create new VPN config file

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
autoconnectbooleanOptional
forwardbooleanOptional
remote_addressstringOptional
remote_portintegerOptional
listen_addressstringOptional
listen_portintegerOptional
Body
filestring · binaryRequired
Responses
post
/api/v1/vpn

Update Vpn Settings

put

Update VPN Settings or Filename in the database and on disk.

Authorizations
OAuth2passwordRequired
Token URL:
Body
filenamestringOptional
autoconnectbooleanOptionalDefault: false
Responses
put
/api/v1/vpn

Delete Vpn

delete

Delete vpn file in the database and disk.

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
delete
/api/v1/vpn

Run Command On Vpn

post

Run command on vpn file

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
actionstring · enumOptionalDefault: startPossible values:
Responses
200

Successful Response

application/json
post
/api/v1/vpn/run

Get Vpn Status

get

Get vpn file status

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/vpn/status

Fetch Advanced Settings

get

Fetch all advanced_settings

Authorizations
OAuth2passwordRequired
Token URL:
Responses
200

Successful Response

application/json
get
/api/v1/advanced/
200

Successful Response

Update Advanced Settings

put

Update advanced settings in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Bodyobject · AdvancedSettingsBase[]
idintegerOptional
labelstringOptional
valuestringOptional
descriptionstringOptional
default_valuestringOptional
Responses
put
/api/v1/advanced/

Create Advanced Setting

post

Create a new advanced setting in the database.

Authorizations
OAuth2passwordRequired
Token URL:
Body
labelstringOptional
valuestringOptional
descriptionstringOptional
default_valuestringOptional
Responses
post
/api/v1/advanced/setting

Delete Advanced Setting

delete

Delete Advanced Settings

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
labelstringRequired
Responses
200

Successful Response

application/json
delete
/api/v1/advanced/setting

Last updated