Skip to main content
POST
Set public access

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Path Parameters

database_id
string
required

Database ID (UUID) or short id (the database_id field, e.g. a1b2c3d4)

Body

application/json
enabled
boolean
required

Enable or disable public access

allowlist
string[]

IPv4 addresses or CIDR ranges allowed to connect. Omit to keep the stored list; pass [] to allow all sources (the password and TLS are still required).

  • Up to 20 entries.
  • A single address such as 203.0.113.7 is stored as 203.0.113.7/32.
  • 0.0.0.0/0 is refused: pass [] instead.
Example:

Response

Updated database

success
boolean
database
object

A managed database instance. The private endpoint {database_id}.db.raffusercloud.com lives inside the attached VPC; public access is optional. TLS is always required.

Last modified on October 5, 2026