Storage class
Object Storage allows you to store objects in storages of various classes depending on how long you want to store your objects and how often you access them. The following classes are available:
- 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 less you pay for storing data; however, the costs of reading and writing data increase. For more information about the pricing, see Object Storage pricing policy.
Note
The minimum billable storage duration 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 the 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 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 any other way. If you create a bucket not from the management console, the default standard storage is set for this bucket. You cannot set the default storage for all buckets in a folder or cloud at once.
Setting the default storage may be useful 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 direct changes of the storage class for an object. 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 configure the change to the
ICE
class using the YC CLI, AWS CLI, Terraform, and the API. For more information about the lifecycle rule format, see Bucket object lifecycle configuration.
Storage class IDs
If you work with Object Storage via an Amazon S3-compatible API or the tools described in Supported tools, 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).