Restore archived storage class files
Updated at:2025-11-03
Restore archived class files
When a user uploads an archived file, it enters a frozen state. To download it, the archived file must first be restored. The requester must have read permissions for the archived file, and the file must remain in its frozen state.
Examples of restoring archived files are as follows:
Java
1RestoreObjectRequest request = new RestoreObjectRequest(bucketName, objectKey);
2request.setRestoreDays(10);
3 // Expedited restoration (RESTORE_TIER_EXPEDITED), standard restoration (RESTORE_TIER_STANDARD), deferred restoration (RESTORE_TIER_LOWCOST)
4request.setRestoreTier(RESTORE_TIER_EXPEDITED);
5client.restoreObject(request);
| Parameters | Types | Description | Required or not |
|---|---|---|---|
| days | int | Defines the duration of the restored state in days, with a numeric value greater than 0 and less than 30. By default, the restoration duration is 7 days, with a maximum duration of 30 days. | No |
| tier | string | Restore priority. The available values are as follows:
|
No |
