API
Last updated
Last updated
The lb
(load balancer) will process requests for both the ui
(frontend) and the web
(API) containers. It is exposed on port 80 by default. Requests that prepend /api
to the URL will route requests to the web
container and all other URLs will be routed to the ui
container. Additionally, there is an admin
container that is exposed on its own port (5001) and is not load-balanced.
Here are the available API endpoints:
admin
(port 5001)GET
http://0.0.0.0:5001/v1
Name | Type | Description |
---|---|---|
GET
http://0.0.0.0:5001/v1/id/files
Name | Type | Description |
---|---|---|
GET
http://0.0.0.0:5001/v1/id/results
Name | Type | Description |
---|---|---|
GET
http://0.0.0.0:5001/v1/ids
GET
http://0.0.0.0:5001/v1/info
GET
http://0.0.0.0:5001/v1/logs/:id
web
(port 80)GET
http://0.0.0.0/api/v1
GET
http://0.0.0.0/api/v1/delete/:sess_id
Deletes files and id directories associated with a session. The last session ID and request ID will be reset if they referred to this session.
GET
http://0.0.0.0/api/v1/id/:sess_id/:req_id/:tool/:pcap/:counter/:filename
Serves up the results from a file produced by a tool given a specific PCAP uploaded for rendering.
GET
http://0.0.0.0/api/v1/ids/:sess_id
Returns a list of all IDs and info about them for this session ID.
GET
http://0.0.0.0/api/v1/info
GET
http://0.0.0.0/api/v1/raw/:tool/:counter/:sess_id/:req_id
Returns the raw JSON results from a tool.
GET
http://0.0.0.0/api/v1/results/:tool/:counter/:sess_id/:req_id
Returns the results from a tool for rendering.
GET
http://0.0.0.0/api/v1/status/:sess_id/:req_id
Return the status of all tools for a request ID.
GET
http://0.0.0.0/api/v1/stop/:sess_id/:req_id
Stops jobs of a request ID.
GET
http://0.0.0.0/api/v1/tools
POST
http://0.0.0.0/api/v1/upload
Upload a PCAP file.
ui
(port 80)GET
http://0.0.0.0/
POST
http://0.0.0.0/express-upload
Processing uploading a file and passes it on the API.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
string
string
string
string
string
string
string
sess_id
string
Session ID
filename
string
Filename to serve up that is returning results from the tool.
counter
number
Which result file number to get, if only one use 1
pcap
string
The name of the PCAP file
tool
string
The tool to get results from
req_id
string
The ID of the file request
sess_id
string
The ID of the session
sess_id
string
Session ID
string
req_id
string
The ID of the file request.
sess_id
string
Session ID
counter
number
A tool might have more than 1 result, otherwise use 0.
tool
string
Name of the tool to get results for.
req_id
string
The ID of the file request.
sess_id
string
Session ID
counter
number
A tool might have more than 1 results, otherwise use 0.
tool
string
Name of the tool to get results for.
req_id
string
The ID of the file request.
sess_id
string
Session ID
req_id
string
The ID of the file request.
sess_id
string
Session ID
string
file
object
The file to upload
sessionId
string
Session ID
string
file
object
File to upload.