Skip to main content
POST
Create a rule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

firewallGroup
integer
required

Body

application/json
type
enum<string>
required
Available options:
Inbound,
Outbound
Example:

"Inbound"

action
enum<string>
required
Available options:
ACCEPT,
REJECT,
DROP
Example:

"ACCEPT"

protocol
enum<string>
required
Available options:
TCP,
UDP,
ICMP,
All
Example:

"TCP"

port
string
required
Example:

"80"

address
string
required
Example:

"0.0.0.0/0"

Response

200 - application/json

Rule created

status
boolean
Example:

true

message
string
Example:

"Firewall Rule created and sync triggered."

data
object