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
需要協助嗎?請前往我們的支援網頁