digitalocean / api-v2

DigitalOcean API v2 feedback
https://developers.digitalocean.com
139 stars 19 forks source link

expose droplet metadata #152

Open jab opened 7 years ago

jab commented 7 years ago

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?

andrewsomething commented 7 years ago

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.

jab commented 7 years ago

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/.