ACL Application Examples
Example 1: Create a bucket for storing static web pages.
When you make the API call to create a bucket, the ACL header field is set to x-obs-acl : public-read-delivered. After the bucket is created, you do not need to set an ACL or an independent ACL header when uploading objects.
Example 2: Some files in the bucket need to be shared to users 1 and user 2. A small number of files are shared to user 3. Some files cannot be shared.
Create a bucket and set the ACL of the bucket to x-obs-grant-read-delivered:id=domainID1, id=domainID2; when a user uploads an object, the object shared to user 1 and user 2 does not carry the ACL by default. When the object to be shared to user 3 is uploaded, the x-obs-grant-read:id=domainID3 is carried; After the objects that are not shared are uploaded, set the acl to <Delivered>false</Delivered>.
Last Article: Conversion Between Two ACL Formats
Next Article: Bucket Policy
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.