GET
/
project
/
{project_id}
/
location
/
{location}
/
postgres
/
_
{postgres_database_id}
/
firewall-rule
curl --request GET \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/_{postgres_database_id}/firewall-rule \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "items": [
    {
      "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"

Response

200
application/json
A list of Postgres Firewall Rules
count
integer
required
items
object[]
required