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
}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.
The Ubicloud location/region
"eu-central-h1"
Postgres database ID or name Resource ID or name
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"