bucketpolicyonly - Configure Bucket Policy Only (Beta)

bucketpolicyonly - Configure Bucket Policy Only (Beta)

Synopsis

gsutil bucketpolicyonly set <on|off> bucket_url...
gsutil bucketpolicyonly get bucket_url...

Description

The bucketpolicyonly command is used to retrieve or configure the Bucket Policy Only (Beta) setting of Cloud Storage bucket(s). This command has two sub-commands, get and set.

Get

The bucketpolicyonly get command shows whether Bucket Policy Only is enabled for the specified Cloud Storage bucket(s).

Get Examples

Check if your buckets are using Bucket Policy Only:

gsutil bucketpolicyonly get gs://redbucket gs://bluebucket

Set

The bucketpolicyonly set command enables or disables the Bucket Policy Only feature on Cloud Storage bucket(s).

Set Examples

Configure your buckets to use Bucket Policy Only:

gsutil bucketpolicyonly set on gs://redbucket gs://bluebucket

Configure your buckets to NOT use Bucket Policy Only:

gsutil bucketpolicyonly set off gs://redbucket gs://bluebucket
此页内容是否有用?请给出您的反馈和评价:

发送以下问题的反馈:

此网页
Cloud Storage
需要帮助?请访问我们的支持页面