By finnn
I’m using the python boto3 library to create a bucket in DigitalOcean Spaces, and using ACL='public-read' I can allow public access to the files, but I’m not sure how to restrict listing of files. I see that there is an option in the web UI to do restrict listing of files, but it’s not clear how to do that via the API.
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!
You should be able to set a bucket level ACL: https://developers.digitalocean.com/documentation/spaces/#set-bucket-acls
Using the AWS cli, the command would be:
aws --endpoint=https://$REGION.digitaloceanspaces.com put-bucket-acl --acl private --bucket $SPACE_NAME
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.