Report this

What is the reason for this report?

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

Posted on October 1, 2019

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



This textbox defaults to using Markdown to format your 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.

Hello @bobbyiliev,

Understood. And thank you for the reply. :)

Best, -Beau

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 @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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.