bucketpolicyonly - Configure uniform bucket-level access

Synopsis

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

Description

The Bucket Policy Only feature is now known as uniform bucket-level access. The bucketpolicyonly command is still supported, but we recommend using the equivalent ubla command.

The bucketpolicyonly command is used to retrieve or configure the uniform bucket-level access setting of Cloud Storage buckets. This command has two sub-commands, get and set.

Get

The bucketpolicyonly get command shows whether uniform bucket-level access is enabled for the specified Cloud Storage bucket.

Get Examples

Check if your buckets are using uniform bucket-level access:

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

Set

The bucketpolicyonly set command enables or disables the uniform bucket-level access feature on Cloud Storage buckets.

Set Examples

Configure your buckets to use uniform bucket-level access:

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

Configure your buckets to NOT use uniform bucket-level access:

gsutil bucketpolicyonly set off gs://redbucket gs://bluebucket
이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.