Skip to main content

firewall_rules

Overview

Namefirewall_rules
TypeResource
Iddigitalocean.databases.firewall_rules

Fields

NameDatatypeDescription
cluster_uuidstringA unique ID for the database cluster to which the rule is applied.
created_atstringA time value given in ISO8601 combined date and time format that represents when the firewall rule was created.
typestringThe type of resource that the firewall rule allows to access the database cluster.
uuidstringA unique ID for the firewall rule itself.
valuestringThe ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.

Methods

NameAccessible byRequired ParamsDescription
list_firewall_rulesSELECTdatabase_cluster_uuidTo 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.
_list_firewall_rulesEXECdatabase_cluster_uuidTo 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.
update_firewall_rulesEXECdatabase_cluster_uuidTo update a database cluster's firewall rules (known as "trusted sources" in the control panel), send a PUT request to /v2/databases/$DATABASE_ID/firewall specifying which resources should be able to open connections to the database. You may limit connections to specific Droplets, Kubernetes clusters, or IP addresses. When a tag is provided, any Droplet or Kubernetes node with that tag applied to it will have access. The firewall is limited to 100 rules (or trusted sources). When possible, we recommend placing your databases into a VPC network to limit access to them instead of using a firewall.
A successful