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

此页内容是否有用?请给出您的反馈和评价:

发送以下问题的反馈:

此网页
Cloud Storage
需要帮助?请访问我们的支持页面