I can retrieve info about a droplet via https://api.digitalocean.com/v2/droplets/ in the API. However I need to retrieve the other addresses allocated to me in the range programmatically - ie without manually checking. Does this exist?
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!
The /v2/droplets response includes all the IP addresses (both IPv4 and IPv6) that are allocated to each Droplet. Is that what you need?
Reference: https://developers.digitalocean.com/documentation/v2/#list-all-droplets
No that just gives you the one IPv6 address allocated at startup. It does not give you the range of IPv6 addresses that you could add. Anyway I have got round this by writing a script to work out the range from that address, running it on any new deployment to create a batch file to add them, and then running that file. I work heavily with IPv6 and I must say I’m a little surprised at the allocation of only 16 addresses when each instance actually has millions available to allocate. Even 256 would be absolutely no skin off DO’s nose. Honestly if another cloud provider starts doing this I suspect people will move there.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.