When I list the sizes available, I get many more options than what the standard web interface shows (I’ve included the NYC1 sizes in this post). Through the web interface, I can determine that it appears the sizes prefixed with s-, g-, or c- are “current”. However, there are other sizes listed as well. Are these valid sizes? Is there a more in depth description of them? My initial thoughts were that they are old hardware configurations that wouldn’t be available, but they have “available” listed as true.
How do I reduce this to the latest available droplets without resorting to hard coding the various prefixes and searching that way?
"32gb",
"16gb",
"2gb",
"1gb",
"4gb",
"8gb",
"512mb",
"64gb",
"48gb",
"c-16",
"s-1vcpu-3gb",
"c-32",
"c-2",
"c-4",
"c-8",
"m-1vcpu-8gb",
"m-16gb",
"m-32gb",
"m-64gb",
"m-128gb",
"m-224gb",
"s-1vcpu-1gb",
"s-1vcpu-2gb",
"s-2vcpu-2gb",
"s-3vcpu-1gb",
"s-2vcpu-4gb",
"s-4vcpu-8gb",
"s-6vcpu-16gb",
"s-8vcpu-32gb",
"s-12vcpu-48gb",
"s-16vcpu-64gb",
"s-20vcpu-96gb",
"s-24vcpu-128gb",
"s-32vcpu-192gb",
"g-2vcpu-8gb",
"g-4vcpu-16gb",
"g-8vcpu-32gb",
"g-16vcpu-64gb",
"g-32vcpu-128gb",
"gd-2vcpu-8gb",
"gd-4vcpu-16gb",
"gd-8vcpu-32gb",
"gd-16vcpu-64gb",
"gd-32vcpu-128gb",
"gd-40vcpu-160gb"
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.
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.
Greetings!
Great question. You can obtain more information about the sizes over our API using this guide:
https://developers.digitalocean.com/documentation/v2/#list-all-sizes
You can also take a look at how they line up with the listings here:
https://www.digitalocean.com/pricing/
Jarland