HCP System Management Help


Retrieving an old version of an object example

Here’s a sample PUT request that retrieves an old version of the object named AcctgBestPractices.doc in the finance bucket. The request writes the object data to a file named AcctgBestPractices.doc-10-08-12.doc. The request is being made while versioning is enabled for the bucket.

Request with s3curl command line

./s3curl.pl --id=lgreen -- -k "https://finance.europe.hcp.example.com/
     AcctgBestPractices.doc?versionId=87288808614529" >
     AcctgBestPractices.doc-10-08-12.doc

Request headers

GET /AcctgBestPractices.doc?versionId=87288808614529 HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 12 Apr 2013 13:49:37 +0000
Authorization: AWS bGdyZWVu:6Am3akZkcfc4fD3WXSBFr+dV7DE=

Response headers

HTTP/1.1 200 OK
Date: Fri, 12 Apr 2013 13:49:35 GMT
Server: HCP V7.0.0.16
ETag: "5ab7542f753b09fdb73141a66c134b9"
x-amz-version-id: 87288808614529
Last-Modified: Tue, 18 Dec 2012 21:06:52 GMT
Cache-Control: no-cache,no-store
Pragma: no-cache
Content-Type: application/msword
Content-Length: 3557448

© 2017 Hitachi Vantara Corporation. All rights reserved.