Question

Where are the images list?

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?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

If you have Tugboat installed:

tugboat images -g

The images aren’t in alphabetical order, however. So if you want to find all CentOS images, you can combine this command with grep like so:

tugboat images -g | grep -i centos

The above command gives (as of March 7 2015) the following output:

5.10 x64 (id: 6372321, distro: CentOS)
5.10 x32 (id: 6372425, distro: CentOS)
7 x64 (id: 10322623, distro: CentOS)
6.5 x64 (id: 10325922, distro: CentOS)
6.5 x32 (id: 10325992, distro: CentOS)

Hello Kamal, <br>We are looking for an easy way to find the image id value for each image in each region. <br> <br>If anyone is interested in the Precise x64 image in San Francisco 1 (region 4), the image id is 3101045. <br> <br>I found the value i needed by using Chrome inspect element similar to the Firebug approach for Firefox that mczylok used. <br> <br>There needs to be an easier way to get this information for folks who want to use APIs. <br> <br>Thank you.