bucketpolicyonly - Configure Bucket Policy Only

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 setting (Beta) 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
このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...

ご不明な点がありましたら、Google のサポートページをご覧ください。