Skip to main content
POST
Create a new firewall rule

Authorizations

Authorization
string
header
required

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

Path Parameters

firewall_reference
string
required

Firewall ID or name Resource ID or name

Pattern: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$
location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

project_id
string
required

ID of the project

Pattern: ^pj[0-9a-hj-km-np-tv-z]{24}$
Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

Body

application/json
cidr
string
required

CIDR or private subnet id or name to allow

firewall_id
string
port_range
string

Port range to allow

protocol
string

Protocol to allow (tcp or udp, default tcp)

description
string

Description to use for the firewall rule

project_id
string

Response

A Firewall Rule or array of them

cidr
string
required

CIDR of the firewall rule

id
string
required

ID of the firewall rule

Pattern: ^fr[0-9a-hj-km-np-tv-z]{24}$
Example:

"fraz0q3vbrpa7pkg7zbmah9csn"

port_range
string
required

Port range of the firewall rule

protocol
enum<string>
required

Protocol of the firewall rule (tcp or udp)

Available options:
tcp,
udp
description
string
required

Description of the firewall rule