Is there a way of retrieving all allowed IPv6 addresses via the api?

November 15, 2017 1.1k views

I can retrieve info about a droplet via 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?

2 Answers

The /v2/droplets response includes all the IP addresses (both IPv4 and IPv6) that are allocated to each Droplet. Is that what you need?


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.

Have another answer? Share your knowledge.