rsdo 0.1.20260901

A Rust client library for the DigitalOcean API v2
Documentation
operationId: databases_list_firewall_rules

summary: List Firewall Rules (Trusted Sources) for a Database Cluster

description: >-
  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.

tags:
  - Databases

parameters:
  - $ref: 'parameters.yml#/database_cluster_uuid'

responses:
  '200':
    $ref: 'responses/firewall_rules.yml'

  '401':
    $ref: '../../shared/responses/unauthorized.yml'

  '404':
    $ref: '../../shared/responses/not_found.yml'

  '429':
    $ref: '../../shared/responses/too_many_requests.yml'

  '500':
    $ref: '../../shared/responses/server_error.yml'

  default:
    $ref: '../../shared/responses/unexpected_error.yml'

x-codeSamples:
  - $ref: 'examples/curl/databases_list_firewall_rules.yml'
  - $ref: 'examples/go/databases_list_firewall_rules.yml'
  - $ref: 'examples/python/databases_list_firewall_rules.yml'

security:
  - bearer_auth:
    - 'database:read'