Hi, I want to be able to create spaces (and occasionally destroy them) via the API. Is this possible?
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!
When we launched Spaces, we decided to start by offering an S3-compatible API. That way Spaces users could take advantage of all the existing the tools and libraries out there in the ecosystem. So the Spaces API is documented separately from the rest of the DO API. You can find the docs here. In most cases, using Spaces with an existing S3 library just requires configuring the endpoint value to be ${REGION}.digitaloceanspaces.com There are a number of example in different languages in this question:
How to use DigitalOcean Spaces with the AWS S3 SDKs?
You could also script this using an S3 compatible cli like s3cmd or rclone.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.