Skip to main content
PATCH
Update a PostgreSQL firewall rule

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required

ID of the project

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

"pjkkmx0f2vke4h36nk9cm8v8q0"

location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

postgres_database_reference
string
required

Postgres database ID or name Resource ID or name

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

ID of the firewall rule

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

"fraz0q3vbrpa7pkg7zbmah9csn"

Body

application/json
cidr
string | null

CIDR of the firewall rule

description
string | null

Description of the firewall rule

Response

A Postgres Firewall Rule

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:

"frmjgkgbktw62k53005jpx8tt7"

description
string

Port information for the firewall rule

port
integer

Port for the Postgres firewall rule