RestoreObject

Prev Next

Available in Classic and VPC

Restore an object and save a copy so that the object stored in the Archive Class can be accessed.

Request

This section describes the request format. The method and URI are as follows:

Method URI
POST /{Key}

Request headers

For information about the headers common to all Ncloud Storage APIs, see Ncloud Storage request headers.

Request path parameters

You can use the following path parameters with your request:

Field Type Required Description
Key String Required Object name

Request query parameters

You can use the following query parameters with your request:

Field Type Required Description
restore String Required Request object restoration.
  • Enter only keys without values.
versionId String Optional Object version ID
  • See ListObjectVersions.
  • Enter when restoring a specific version of an object from a bucket with version control enabled.

Request body

You can include the following data in the body of your request:

Field Type Required Description
RestoreRequest Object Required Restoration request information
RestoreRequest.Days Integer Optional Copy usage period (day)

Request example

The request example is as follows:

POST /object.csv?restore HTTP/1.1
Host: bucket.kr.ncloudstorage.com

<?xml version="1.0" encoding="UTF-8"?>
<RestoreRequest>
    <Days>3</Days>
</RestoreRequest>

Response

This section describes the response format.

Response headers

For information about the headers common to all Ncloud Storage APIs, see Ncloud Storage response headers.

Response status codes

For information about the HTTP status codes common to all Ncloud Storage APIs, see Common Ncloud Storage response status codes.

Response example

The response example is as follows:

HTTP/1.1 202 Accepted