Skip to main content
POST
Create Firewall Rule
Create a new firewall rule in a project.

Required Parameters

  • name: Rule name
  • action: “allow” or “deny”
  • direction: “ingress” or “egress”
  • vpc_network_id: Network ID
  • sources: Source specifications
  • destinations: Destination specifications
  • protocols: Protocol list (e.g., “tcp”, “udp”)

Optional Parameters

  • source_ports: Source port ranges
  • destination_ports: Destination port ranges

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Project id

Body

application/json
name
string
required
vpc_network_id
string
required
action
enum<string>
required
Available options:
allow,
deny
destinations
object[]
required
direction
enum<string>
required
Available options:
ingress,
egress
protocols
string[]
required

tcp, udp

sources
object[]
required
destination_ports
string[]

[80, 443, 3000-8080]

source_ports
string[]

[80, 443, 3000-8080]

Response

200 - application/json
operation
object
required