curl --request GET \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/firewall-rule \
--header 'Authorization: Bearer <token>'
{
"count": 123,
"items": [
{
"cidr": "<string>",
"description": "<string>",
"id": "pfmjgkgbktw62k53005jpx8tt7"
}
]
}
curl --request GET \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/firewall-rule \
--header 'Authorization: Bearer <token>'
{
"count": 123,
"items": [
{
"cidr": "<string>",
"description": "<string>",
"id": "pfmjgkgbktw62k53005jpx8tt7"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The Ubicloud location/region
"eu-central-h1"
Postgres database ID or name
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
A list of Postgres Firewall Rules
The response is of type object
.