How to dynamically update management IP on DigitalOcean

Mar 24, 2022 Cloud, Design, Cloud-dev-machine, Digital-Ocean, python

Steps: Generate a token for API access: Navigate through API -> Tokens/Keys, click the button Generate New Token Give it a name and write permission. The key will only show once after confirming the key details, so make a good copy for it Find firewall for management, or create one if there isn’t one Use the a.external { background: url('/images/external.png') no-repeat 100% 0; background-size: 14px 14px; padding-right: 16px; } API to list all policies and look for a policy named mgmt in the response that should be similar to the following: ...