Baidu AI Cloud
中国站

百度智能云

Object Storage

RestoreObject

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

  • Response header field

    No special response header field.

  • Response parameters

    None

Considerations

None

Example

  • Request example

    POST /ObjectName?restore HTTP/1.1
    Host: <BucketName>.bj.bcebos.com
    x-bce-date: <Date>
    Content-Length: 0
    x-bce-restore-days:3
  • Response example

    HTTP/1.1 200 OK
    x-bce-request-id: 4db4b34d-653d-4d9a-b49b-3049ca786409
    Date: Wed, 31 May 2018 08:34:40 GMT
    Server: BceBos
Previous
PutObject
Next
Access Control