Update the IP restriction configuration for a database. Sets the restriction type (allow or deny), enables or disables it, and updates the list of IP addresses or CIDR ranges. IP restrictions only apply to external connections. When type is allow, only the listed IPs can access the database. When type is deny, the listed IPs are blocked. Returns the updated restriction state.
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Database identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Restriction type. allow - only listed IPs can access the database externally. deny - listed IPs are blocked from accessing the database externally.
allow, deny Whether the IP restriction should be active
List of IP addresses or CIDR ranges to include in the restriction. Each IP must be a valid public unicast address or CIDR range.
50045Default Response
Restriction type. allow - only listed IPs can access. deny - listed IPs are blocked.
allow, deny "allow"
Whether the IP restriction is currently active
true
List of IP addresses or CIDR ranges included in the restriction
["203.0.113.0/24", "198.51.100.1"]