RestoreObject
Last Updated:2021-12-08
Interface Description
RestoreObject is used to restore the archive storage file. The requester must have the read permission of the archive storage file, and the archive storage file is frozen.
Notes:
- If the soft link is used to access this interface, it is processed according to the storage type and state of the destination files for the soft link.
- If you use the soft link to access this interface and the destination file of the soft link is deleted, it returns “404,SymlinkTargetNotExist”.
Request
-
Request syntax
POST /ObjectName?restore HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: <Date> Content-Length: 0 Authorization: <Authorization_String> x-bce-restore-tier:Expedited/Standard x-bce-restore-days:3
-
Request header field
Name Type Description Required? x-bce-restore-days int It indicates the duration of frozen state. The number is required (day), and the value is greater than 0 and no more than 30. The default duration of the frozen state is 7 days, or up to 30 days. No -
Request parameters
No special parameters.
Response
Considerations
None