百度智能云

All Product Document

          Object Storage

          Bucket Privilege Control

          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:

          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.

          Previous
          Object Privilege Control
          Next
          IAM Master User and Sub-user Access Control