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.
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!
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.
The slugs for optimized droplets are not available in the blog post, but you can get them from the API, over 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-4, where number is number of vCPUs they have.
Pay attention that API responses are paged. If you use the following
curlcommand, you’ll get only first 20 sizes/slugs, out of total 30.
To get another 10, you need to specify that you want the second page from the API:
Let me know if you have any other questions.
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!
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.
Sign up now