Updating the Object Storage Object's Storage Tier
Update the storage tier for an object in that reside in the Standard and Infrequent Access tiers in an Object Storage bucket.
You can update the storage tier for objects that reside in the Standard and Infrequent Access tiers, but not the Archive tier. If you update the storage tier of an object to Archive, you can't change it back to a different tier. To update the storage tier of an object, you need OBJECT_UPDATE_TIER permissions.
Objects in the Archive and Infrequent Access tiers have a minimum storage retention period and data retrieval fees. For more information, see Understanding Storage Tiers.
Use the oci os object update-storage-tier command and required parameters to change the storage tier for an object in a bucket:
oci os object update-storage-tier --bucket-name bucket_name --name object_name --storage-tier [Archive | InfrequentAccess | Standard] [OPTIONS]
For example:
oci os object update-storage-tier --bucket-name MyStandardBucket --name MyFile.txt --storage-tier Archive
To view an object's storage tier, see Getting an Object's Details.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateObjectStorageTier operation to change the storage tier for an object in a bucket.
Object Storage prepends the Object Storage namespace string and bucket name to the object name when constructing a URL for use with the API:
/n/object_storage_namespace/b/bucket/o/object_name
The object name is everything after the
/o/
, which could include hierarchy levels and prefix strings.