Question

Where to find the list of optimized droplets slugs?

I have found this page https://developers.digitalocean.com/documentation/changelog/api-v2/new-size-slugs-for-droplet-plan-changes/

But here only presents the slugs for standard droplet.

I’m able to get droplet’s size info by API, but there is no information within returned JSON to distinguish standard and optimized droplets.

I assume a droplet with “8gb” slugs is optimized by comparing the CPU, RAM, SSD and price - not really convenient way.

I did implement the complex performance test using “8gb” droplets and every time I have so different results so I can’t believe that this droplets have dedicated vCPU.

Regards Alexander


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.

Accepted Answer

Hello @altexy!

The slugs for optimized droplets are not available in the blog post, but you can get them from the API, over the /v2/sizes endpoint.

The 8gb-formatted slugs you mentioned are old Droplets, and those are going to be discontinued starting July 1st, 2018.

The optimized Droplets should be prefixed c-. For example, the lowest one, with 1 vCPU and 2 GB RAM is c-1vcpu-2gb, but other’s are prefixed c-2, c-4, where number is number of vCPUs they have.

Pay attention that API responses are paged. If you use the following curl command, you’ll get only first 20 sizes/slugs, out of total 30.

curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer your-token" "https://api.digitalocean.com/v2/sizes"

To get another 10, you need to specify that you want the second page from the API:

curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer your-token" "https://api.digitalocean.com/v2/sizes?page=2"

Let me know if you have any other questions.

Andrew SB
DigitalOcean Employee
DigitalOcean Employee badge
April 1, 2019

Screenhot

I know this post is pretty old, but I wanted to share something I put together recently: https://slugs.do-api.dev/

It is updated automatically via the DigitalOcean API, so it is always up to date. Besides Droplet Sizes, it also has the slugs for Distro Images, One-Click Apps, and Kubernetes Versions.

Hope you find it useful!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.