Question

Specify Hard drive size using the API

Greetings all, when using the API to resize a droplet, how can you specify the hard drive size you want? I do see in the documentation that you set disk to true, but don’t see you can specify the size of the disk. To give my scenario, we have some droplets still on the old standards of 512mb of memory and 20GB hard drives. If i set the slug size to s-1vcpu-1gb and disk to true, the memory is upgraded from the old basic standard of 512 but the hard drive remains at 20GB. Thanks in advance.


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.

Hey there,

The hard drive size can’t be explicitly specified but you will gain 5Gb of disk space by moving to the new $5 plan. Should you not see the additional disk space after the API call completes it’s because the partition/filesystem of your Droplet hasn’t been resized, we have instructions on this here.

If you have any questions or need clarification on anything, just write back in and let me know.

Regards, Ethan Fox Developer Support Engineer II - DigitalOcean