POST
/
project
/
{project_id}
/
location
/
{location}
/
postgres
/
_
{postgres_database_id}
/
firewall-rule
curl --request POST \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/_{postgres_database_id}/firewall-rule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cidr": "<string>"
}'
{
  "cidr": "<string>",
  "id": "pfmjgkgbktw62k53005jpx8tt7"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

postgres_database_id
string
required

Postgres database ID

Example:

"pgn30gjk1d1e2jj34v9x0dq4rp"

project_id
string
required

ID of the project

Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

Body

application/json
cidr
string
required

CIDR of the firewall rule

Response

200
application/json
A Postgres Firewall Rule
cidr
string
required

CIDR of the Postgres firewall rule

id
string
required

ID of the Postgres firewall rule

Example:

"pfmjgkgbktw62k53005jpx8tt7"