Stay organized with collections Save and categorize content based on your preferences.

requesterpays - Enable or disable requester pays for one or more buckets

Synopsis

gsutil requesterpays set (on|off) gs://<bucket_name>...
gsutil requesterpays get gs://<bucket_name>...

Description

The Requester Pays feature enables you to configure a Cloud Storage bucket so that the requester pays all costs related to accessing the bucket and its objects.

The gsutil requesterpays command has two sub-commands:

Set

The "set" sub-command requires an additional sub-command, either "on" or "off", which, respectively, will enable or disable Requester Pays for the specified bucket.

Get

The "get" sub-command gets the Requester Pays configuration for a bucket and displays whether or not it is enabled.