By jrevillas95
I was looking for the ID’s of the different distros… I couldn’t find it for using the API to rebuild my servers… Any help?
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!
Use /v2/images except that this only shows 20 per page by default, so use per_page= to get the list on one page. Here is the full URL:
https://api.digitalocean.com/v2/images?per_page=999
So with curl, use something like:
curl -X GET --silent "https://api.digitalocean.com/v2/images?per_page=999" -H "Authorization: Bearer $TOKEN" |jq '.'
Here you have (to get it i use firebug on rebuild section) <br>361740 Arch Linux 2013.05 x32 <br>350424 Arch Linux 2013.05 x64 <br>1602 CentOS 5.8 x32 <br>1601 CentOS 5.8 x64 <br>376568 CentOS 6.4 x32 <br>562354 CentOS 6.4 x64 <br>3102733 CentOS 6.5 x32 <br>3102789 CentOS 6.5 x64 <br>12575 Debian 6.0 x32 <br>12573 Debian 6.0 x64 <br>3102384 Debian 7.0 x32 <br>3102387 Debian 7.0 x64 <br>3104894 Docker 0.10 on Ubuntu 13.10 x64 <br>3140202 Dokku-v0.2.1 on Ubuntu 13.04 <br>32387 Fedora 17 x32 <br>32399 Fedora 17 x32 Desktop <br>32428 Fedora 17 x64 <br>32419 Fedora 17 x64 Desktop <br>3102721 Fedora 19 x32 <br>3102879 Fedora 19 x64 <br>3121555 Ghost 0.4.2 on Ubuntu 12.04 <br>3118238 GitLab 6.6.5 CE <br>3120115 LAMP on Ubuntu 12.04 <br>3118235 MEAN on Ubuntu 12.04.4 <br>3137903 Redmine on Ubuntu 12.04 <br>3137635 Ruby on Rails on Ubuntu 12.10 (Nginx + Unicorn) <br>14098 Ubuntu 10.04 x32 <br>14097 Ubuntu 10.04 x64 <br>3100616 Ubuntu 12.04.4 x32 <br>3101045 Ubuntu 12.04.4 x64 <br>3101888 Ubuntu 12.10 x32 <br>3101891 Ubuntu 12.10 x64 <br>3104282 Ubuntu 12.10 x64 Desktop <br>3101580 Ubuntu 13.10 x32 <br>3101918 Ubuntu 13.10 x64 <br>3135725 Wordpress on Ubuntu 13.10
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.