Restoring an Object Storage Object from Archive Storage
Restore an object from Archive Storage to Object Storage.
Depending on the size of the object, it can take at most an hour to restore an object from Archive Storage. You can't download an item object until the item is fully restored.
To restore objects from Archive Storage, you need OBJECT_RESTORE permissions.
Use the oci os object restore-status command and required parameters to get that status of an object being restored from Archive Storage to Object Storage in a bucket:
oci os object restore-status --bucket-name archive_bucket_name --name archived_object_name [OPTIONS]
By default, you have 24 hours to download an object after restoration. However, you can include the optional
hours
parameter with an integer value of download time of from 1 to 240 hours. For example:You needoci os object restore --bucket-name MyArchiveBucket --name MyArchivedObject --hours 12
OBJECT_RESTORE
permissions to restore Archive Storage objects.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the RestoreObjects operation to restore an object from Archive Storage to Object Storage.
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.