Question

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

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

Subscribe
Share

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

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.

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.

Hello @bobbyiliev,

Understood. And thank you for the reply. :)

Best, -Beau

Hello @beauzo,

Unfortunately, “Trusted Sources” are not supported via the API at the moment, but I believe that DigitalOcean are already working on it and hopefully, it would be available in the near future.

Regards, bobby