Is it possible to set trusted sources for managed databases from the API or doctl?

October 1, 2019 370 views
DigitalOcean Managed PostgreSQL Database

I would like to automate the process of adding trusted sources to my managed databases. Thank you!

3 Answers

Hi @beauzo,

I wanted to follow up here to let you know that the DigitalOcean API now supports managing a database cluster’s firewall rules (or “trusted sources” as they are called in the control panel). You can use this endpoint to limit connections to specific Droplets, Kubernetes clusters, external IP addresses, or groups of resources using tags.

Check out the API changelog entry for more information.

Show answer This comment has been marked as resolved by aha.
Show answer This comment has been marked as resolved by aha.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!