Return status of restore job

get

/v0/{account}/{container}

Retrieve the status of the given restore job.

Request

Path Parameters
  • The unique name for the account. An account is also known as the project or tenant.
  • The unique name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, /account/container/object.
Query Parameters
  • Unique id of the job that is responsible for restoring the archived object.
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Success
Headers
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : jobDetails
Type: object
Job specific section which allows jobs to provide additional information to clients.
Nested Schema : LinkDef
Type: object
Show Source

401 Response

Request does not include an authentication token, or authentication token specified in the request is not valid. It may have expired. Authentication tokens expire after 30 minutes.
Headers

404 Response

A job matching the job ID was not found.
Headers

500 Response

Operation failed. The body will have a detailed error message."
Headers
Back to Top

Examples

cURL Command

The following example shows how to retrieve the status of a restoration job by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -v -X GET \
     -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \
     "https://foo.storage.oraclecloud.com/v0/myservice-bar/FirstArchiveContainer?jobs&jobid=a75c8bbf53224a88738e68d6628acd83a4b300e4""

Sample Response

The following is a sample response of this command:

HTTP/1.1 200 OK
{
"endTime":"2015-06-18,17:54",
"progress":"success","completedPercentage":100,
"intervalToPoll":10,
"jobDetails":{
"objectSizeInBytes":"20",
"objectEtag":"4221d002ceb5d3c9e9137e495ceaa647",
"objectExpiration":"1434736481424"
},
"links":
[
{"rel":"self",
"href":"http://foo.storage.oraclecloud.com/v0/myservice-bar/FirstArchiveContainer?jobs&jobid=a75c8bbf53224a88738e68d6628acd83a4b300e4"},
{"rel":"original","href":"http://foo.storage.oraclecloud.com/v0/myservice-bar/FirstArchiveContainer/file.txt"},
{"rel":"canonical","href":"foo.storage.oraclecloud.com/v0/myservice-bar/FirstArchiveContainer/file.txt"}
],
"startTime":"2015-06-18,17:53",
"completed":true,
"jobType":"RestoreArchivedObjectJob",
"jobId":"a75c8bbf53224a88738e68d6628acd83a4b300e4"
}
Back to Top