curl --request PATCH \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/firewall-rule/{firewall_rule_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cidr": "<string>",
"description": "<string>"
}'
{
"cidr": "<string>",
"description": "<string>",
"id": "pfmjgkgbktw62k53005jpx8tt7"
}
curl --request PATCH \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/firewall-rule/{firewall_rule_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cidr": "<string>",
"description": "<string>"
}'
{
"cidr": "<string>",
"description": "<string>",
"id": "pfmjgkgbktw62k53005jpx8tt7"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
The Ubicloud location/region
"eu-central-h1"
Postgres database ID or name
ID of the postgres firewall rule
"pfmjgkgbktw62k53005jpx8tt7"
A Postgres Firewall Rule
The response is of type object
.