Create a new firewall rule
POST /rules
POST
/rules
Creates a new firewall rule with the provided details.
Request Body required
object
id
integer
destination
required
string
action
required
string
note
string
protocol
required
integer
source
string
order
required
integer
destination_port
object
match_type
string
match_value
Array<integer>
range
object
start
integer
end
integer
source_port
object
match_type
string
match_value
Array<integer>
range
object
start
integer
end
integer
matches
Array<object>
object
match
required
string
match_type
string
match_value
string
range
object
start
integer
end
integer
Responses
200
Successful creation of firewall rule
object
data
object
rule_id
integer
success
boolean
400
Bad request (e.g., invalid input)
object
success
boolean
message
string