Bucket Privilege Control
Last Updated:2020-10-23
Basic Introduction
After a bucket is created, ACL can be used to manage bucket privileges.
Operation Method
BOS supports both API and SDK to manage bucket privileges, as follows:
-
Use API to manage bucket privileges
-
bucket privilege management by SDK
For example, use the sample code of Java SDK:
public void setBucketPrivate (BosClient client, String bucketName) {
client.setBucketAcl(bucketName, CannedAccessControlList.Private);
}
Note:
When a bucket is created, the default privilege is private.