1-800-833-1132 : 1-303-449-6400


Spectra BlackPearl Converged Storage System : Spectra S3 Bucket, Object, and Job Operations : Spectra S3 Object Operations : Undelete Object

Undelete Object
Description
Restores the most recent version of an object when the data policy specifies versioning=KEEP_MULTIPLE_VERSIONS.
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/object/?bucket_id={string}&name={string}
Request Parameters
a.
Responses
Response Elements
<Data>
   <BucketId>{
string}</BucketId>
   <CreationDate>{YYYY-MM-DDThh:mm:ss.xxxZ}</CreationDate>
   <Id>{string}</Id>
   <Latest>TRUE|FALSE</Latest>
   <Name>{
string}</Name>
   <Type>DATA|FOLDER</Type>
</Data>
where the response elements are defined as follows:
Example
Sample Request
This request restores the object with the UUID 073fe9c2-5983-4a46-9974-60804b8a6349 in the bucket named bucket1.
PUT http://blackpearl-hostname/_rest_/object/?bucketId=bucket1&name=073fe9c2-5983-4a46-9974-60804b8a6349 HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <BucketId>6d17cd22-d456-4458-8cb6-b553eb81ce3f</BucketId>
   <CreationDate/>
   <Id>073fe9c2-5983-4a46-9974-60804b8a6349</Id>
   <Latest>TRUE</Latest>
   <Name>object_name</Name>
   <Type>DATA</Type>
</Data>