defstorageclass - Get or set the default storage class on buckets


gsutil defstorageclass set <storage-class> gs://<bucket_name>...
gsutil defstorageclass get gs://<bucket_name>...


The defstorageclass command has two sub-commands:


The "defstorageclass set" command sets the default storage class for the specified bucket(s). If you specify a default storage class for a certain bucket, Cloud Storage applies the default storage class to all new objects uploaded to that bucket, except when the storage class is overridden by individual upload requests.

Setting a default storage class on a bucket provides a convenient way to ensure newly uploaded objects have a specific storage class. If you don't set the bucket's default storage class, it will default to Standard.


Gets the default storage class for a bucket.