Linux command
doctl-databases-firewalls 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List firewall rules
doctl databases firewalls list [cluster_id]
Add firewall rule for IP
doctl databases firewalls append [cluster_id] --rule ip_addr:[ip]
Add firewall rule for droplet
doctl databases firewalls append [cluster_id] --rule droplet:[droplet_id]
Remove firewall rule
doctl databases firewalls remove [cluster_id] [rule_uuid]
说明
doctl databases firewalls manages trusted sources (firewall rules) for DigitalOcean managed database clusters. Rules control which IPs, droplets, Kubernetes clusters, or tags can connect. By default, managed database clusters deny all incoming connections for security. Firewall rules explicitly allow access from specific sources. You can authorize individual IP addresses, entire droplets, Kubernetes clusters, or resources identified by tags. This enables secure database access while preventing unauthorized connections. Rules can be added, listed, and removed to adapt to changing infrastructure requirements. Each rule is identified by a UUID for management operations.
FAQ
What is the doctl-databases-firewalls command used for?
doctl databases firewalls manages trusted sources (firewall rules) for DigitalOcean managed database clusters. Rules control which IPs, droplets, Kubernetes clusters, or tags can connect. By default, managed database clusters deny all incoming connections for security. Firewall rules explicitly allow access from specific sources. You can authorize individual IP addresses, entire droplets, Kubernetes clusters, or resources identified by tags. This enables secure database access while preventing unauthorized connections. Rules can be added, listed, and removed to adapt to changing infrastructure requirements. Each rule is identified by a UUID for management operations.
How do I run a basic doctl-databases-firewalls example?
Run `doctl databases firewalls list [cluster_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more doctl-databases-firewalls examples?
This page includes 4 examples for doctl-databases-firewalls, plus related commands for nearby Linux tasks.