Storage class
Object Storage allows you to store objects in storages of various classes depending on your requirements for storage duration and frequency of object operations. The classes to choose from are:
- Standard storage
- Cold storage
- Ice storage
Cold classes are designed to store objects that you plan to use less frequently for longer periods of time. The colder your storage is, the cheaper it is to store data but the more expensive it is to read from and write to it. For more information about the pricing, see Object Storage pricing policy.
Note
The minimum billable storage time of an object in ice storage is 12 months. If you delete an object that was stored for less than 12 months, you will be charged the remaining cost after deletion.
If you need, you can specify your storage class when uploading each individual object.
Default storage for a bucket
If you do not specify the storage class when uploading your object, the object will be saved to the bucket's default storage.
You can set the default storage when creating a bucket in the management console. Afterwards, you can change this setting for each bucket, also in the management console. You cannot set or change the default storage with other tools. The buckets created outside of the management console use the default standard storage. You cannot set the default storage for all buckets in a folder or cloud at once.
Setting the default storage may be handy when the tool you use does not allow you to set the object storage class.
Changing an object storage class
Object Storage does not support changing the storage class of an object directly. To change the storage class, you can:
- Upload the object to Object Storage again and select the required storage class.
- Set the criteria for changing the storage class to a colder one using object lifecycles. You can set the change of the storage class to
ICE
using YC CLI, AWS CLI, Terraform, and the API. For more information about the lifecycle rule format, see Bucket object lifecycle configuration.
Storage class IDs
When working with Object Storage using an Amazon S3-compatible API or the tools described in the Supported tools section, use the following IDs for storage classes:
- Standard storage:
STANDARD
. - Cold storage:
COLD
,STANDARD_IA
, orNEARLINE
(use the last two only for uploading objects to a bucket). - Ice storage:
ICE
orGLACIER
(use the latter only for uploading objects to a bucket).