put-bucket-acl

更新时间:
复制 MD 格式

Sets or modifies the access control list (ACL) of a bucket.

Syntax

ossutil api put-bucket-acl --bucket value --acl value [flags]

Parameter

Type

Description

--bucket

string

The bucket name.

--acl

string

The bucket ACL. Valid values:

  • private

  • public-read

  • public-read-write

Examples

Set the ACL of examplebucket to private:

ossutil api put-bucket-acl --bucket examplebucket --acl private