How to set a default storage class for a bucket
Each bucket has a default storage class. All new objects are uploaded into this class unless you explicitly define the class. By default, new buckets use the Standard storage class. You can change the default storage class both when you create a bucket and for an existing bucket. The new default storage class does not affect objects that are already in storage in the bucket.You can use the Force storage class (
--force-storage-class) bucket parameter to make the default storage class override the storage class that you explicitly select for any individual object uploaded to the bucket.For a new bucket
- Web console
- Nebius AI Cloud CLI
- In the sidebar, go to
Storage → Object Storage.
- Click Create bucket.
- Select the storage class in the bucket creation form.
- Configure the other settings and create the bucket.
For an existing bucket
- Web console
- Nebius AI Cloud CLI
- In the sidebar, go to
Storage → Object Storage.
- Select the bucket you need and switch to the Settings tab.
- Select the storage class and save the changes.
How to upload an object to a storage class
If you need to store an object in a different storage class than the default one for the bucket, set the storage class during upload. To upload an object to the desired storage class, set the--storage-class parameter in the upload command:
s5cmd
copy-object request that moves the object between storage classes:
s5cmd