Skip to main content
POST
Create Firewall Rule

Authorizations

Authorization
string
header
required

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

Path Parameters

firewall_id
string<uuid>
required

Firewall Group UUID

Body

application/json
protocol
enum<string>
required

icmp with a v6 subnet and ipv6-icmp are equivalent; the rule is stored with the version-appropriate name

Available options:
tcp,
udp,
icmp,
ipv6-icmp
Example:

"tcp"

subnet
string
required

IP/CIDR, special value (Cloudflare, Onidel, HetrixTools, CloudFront, UptimeRobot), or IP list (list:{uuid})

Example:

"0.0.0.0"

subnet_size
integer
required

CIDR prefix length (a numeric string is also accepted)

Example:

0

team_id
string<uuid>
port
string

Port number or range (e.g. '80', '8000:9000'). Not required for ICMP.

Example:

"443"

desc
string
Example:

"Allow HTTPS traffic"

Response

Firewall rule created successfully

firewall_rule
object