cURL
curl --request POST \ --url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/firewall-rule \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "cidr": "<string>", "description": "<string>" } '
{ "cidr": "<string>", "id": "frmjgkgbktw62k53005jpx8tt7", "description": "<string>", "port": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The Ubicloud location/region
"eu-central-h1"
Postgres database ID or name Resource ID or name
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
CIDR of the firewall rule
Description of the firewall rule
A Postgres Firewall Rule
ID of the firewall rule
"frmjgkgbktw62k53005jpx8tt7"
Port information for the firewall rule
Port for the Postgres firewall rule