v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Databases

List Firewall Rules (Trusted Sources) for a Database Cluster

To list all of a database cluster's firewall rules (known as "trusted sources" in the control panel), send a GET request to /v2/databases/$DATABASE_ID/firewall. The result will be a JSON object with a rules key.

get/v2/databases/{database_cluster_uuid}/firewall

Path parameters

database_cluster_uuidstring uuid required

A unique identifier for a database cluster.

Response

A JSON object with a key of rules.

Example response

{
  "rules": [
    {
      "uuid": "79f26d28-ea8a-41f2-8ad8-8cfcdd020095",
      "cluster_uuid": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
      "type": "droplet",
      "value": "ff2a6c52-5a44-4b63-b99c-0e98e7a63d61",
      "created_at": "2019-01-11T18:37:36Z"
    }
  ]
}