Labels Ports

List Port Labels

get

Returns an array of port labels.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of Port Labels Requested

application/json
get
/api/v1/labels/ports

Create Port Label

post

Creates a port label from the data that's been supplied

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Port Label Create Config

protocolstringRequired

Protocol.

Example: udp
portnumberRequired

Port

Example: 1
labelsstring[] · min: 1 · max: 10000Required

Labels for port

Example: ["test"]
Responses
post
/api/v1/labels/ports

Update Port Label

put

Update a Port Label given the provided object. This does not do a diff. You must send the complete object.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Port Label Create Config

protocolstringRequired

Protocol.

Example: udp
portnumberRequired

Port

Example: 1
labelsstring[] · min: 1 · max: 10000Required

Labels for port

Example: ["test"]
Responses
200

Port Label Requested

application/json
put
/api/v1/labels/ports

List Configured Protocols

get

Returns an array of protocols.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of Port Labels Protocols Requested

application/json
get
/api/v1/labels/ports/protocols

List Port Labels by protocol

get

Fetches all labels by a specific protocol for all Ports.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
protocolstringRequired

The protocol of the Port labels to be returned.

Responses
200

Port Label Requested

application/json
get
/api/v1/labels/ports/all/{protocol}

List Port Labels by port

get

Fetches a all Port labels for the port supplied in the path.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
portstringRequired

The Port number of the Port labels to be returned.

Responses
200

Port Label Requested

application/json
get
/api/v1/labels/ports/{port}

Fetch Port Label

get

Fetches a specific port label from the protocol and port supplied in the path.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
portstringRequired

The port of the port label to be returned.

protocolstringRequired

The protocol of the port label to be returned.

Responses
200

Port Label Requested

application/json
get
/api/v1/labels/{port}/{protocol}

Delete Port Label by port:protocol

delete

Delete Port Label

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
portstringRequired

The port of the port label to be deleted.

protocolstringRequired

The protocol of the port label to be deleted.

Responses
delete
/api/v1/labels/{port}/{protocol}

No content

Expose Port Label

put

Expose (un-hide) a hidden system port label.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
portstringRequired

The port of the port label to be exposed. Labels in this protocol will now appear for this Port in the UI.

protocolstringRequired

The protocol of the port label to be shown.

Responses
200

Port Label Requested

application/json
put
/api/v1/labels/ports/{port}/{protocol}/show

Hide Port Label

put

Hide system port label.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
portstringRequired

The port of the port label to be hidden.

protocolstringRequired

The protocol of the port label to be hidden.

Responses
200

Port Label Requested

application/json
put
/api/v1/labels/ports/{port}/{protocol}/hide

Reset Port Label

put

Reset system port label to default state.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
portstringRequired

The port of the port label to be reset.

protocolstringRequired

The protocol of the port label to be reset.

Responses
200

Port Label Requested

application/json
put
/api/v1/labels/ports/{port}/{protocol}/reset

Bulk Upload Port Labels

put

Bulk upload port labels. New labels will be created, and existing labels will be replaced. Limited to 10,000 labels per request.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodyobject[]

Port Label Create Config

protocolstringRequired

Protocol.

Example: udp
portnumberRequired

Port

Example: 1
labelsstring[] · min: 1 · max: 10000Required

Labels for port

Example: ["test"]
Responses
put
/api/v1/labels/ports/bulk

Bulk Delete Port Labels

delete

Bulk delete port labels from the data that's been supplied

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodyobject[]

Delete Port Labels via port or protocol or both. One of port or protocol is required. Both may be provided as well.

portnumberOptional

Port. Optional if protocol is provided.

Example: 1
protocolstringOptional

Protocol. Optional is port is provided.

Example: udp
Responses
delete
/api/v1/labels/ports/bulk

Upload Port Labels

put

Upload Port labels via a CSV file. New labels will be created, and existing labels will be replaced. Limited to 10,000 labels per request. The CSV must be a text file and should NOT have any headers. Multiple labels can be assigned per protocol by having additional columns. Example CSV: Port1, Protocol1, Label1 Port1, Protocol2, Label1, Label2 Port2, Protocol1, Label3 Port2, Protocol4, Label4, Label5, Label6

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
filestring · textRequired

The CSV file to upload

Responses
put
/api/v1/labels/ports/upload

Last updated