defstorageclass - Get or set the default storage class on buckets

defstorageclass - Get or set the default storage class on buckets

Synopsis

gsutil defstorageclass set <storage-class> bucket_url...
gsutil defstorageclass get bucket_url...

Description

The defstorageclass command has two sub-commands:

Set

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, Google 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.

Get

Gets the default storage class for a bucket.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Storage Documentation