Question

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

Posted October 1, 2019 690 views
DigitalOcean Managed PostgreSQL Database

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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 answer has been marked as resolved by AHA.
Submit an Answer