api-v2 icon indicating copy to clipboard operation
api-v2 copied to clipboard

expose droplet metadata

Open jab opened this issue 9 years ago • 2 comments

I checked with support and confirmed that currently a droplet's metadata is only available to link-local hosts via the http://169.254.169.254/metadata/ API. So I was encouraged to request this. Could you please expose metadata along with the other data available through the https://api.digitalocean.com API?

jab avatar Nov 03 '16 18:11 jab

Hi @jab! Thanks for the request. We'd love to know a bit more about your use case here. Is there a particular piece of information you need that is exposed in the metadata but not the /v2/droplets/ endpoint of the API? It would be interesting for us to know how you would want to use the information.

andrewsomething avatar Nov 03 '16 20:11 andrewsomething

Thanks for the quick response! We need to be able to query for some metadata associated with a droplet at creation time that needs to be > 256 characters. We'd use a tag if not for that length limit. Given the limit on tag length, we started using user_data, but then hit a wall when we found it unavailable under /v2/droplets/.

jab avatar Nov 03 '16 20:11 jab