HCP Tenant Management Help


Example 1: Listing the multipart uploads for an object

Here's a sample GET request for a listing of the in-progress multipart uploads in the finance bucket for an object named acctg/RulesAndRegulations.pdf. The request uses the prefix query parameter to specify the object name.

Request with s3curl command line

./s3curl.pl --id=lgreen -- -k "https://finance.europe.hcp.example.com?uploads
             &prefix=acctg/RulesAndRegulations"
     -H "x-hcp-pretty-print: true"

Request headers

GET /?uploads&prefix=acctg/RulesAndRegulations.pdf HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 10 May 2019 17:19:26 +0000
Authorization: AWS bGdyZWVu:IUzJmUIE9YYu9S6f7l9iYUqzZRE=
x-hcp-pretty-print: true

Response headers

HTTP/1.1 200 OK
Date: Fri, 10 May 2019 17:19:26 GMT
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListMultipartUploadsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
     <Bucket>finance</Bucket>
     <Prefix>acctg/RulesAndRegulations.pdf</Prefix>
     <MaxUploads>1000</MaxUploads>
     <IsTruncated>false</IsTruncated>
     <Upload>
          <Key>acctg/RulesAndRegulations.pdf</Key>
          <UploadId>94874755807297</UploadId>
          <Initiator>
               <ID>835be4b1-8f84-407b-8084-b9329beadf9b</ID>
               <DisplayName>lgreen</DisplayName>
          </Initiator>
          <Owner>
               <ID>835be4b1-8f84-407b-8084-b9329beadf9b</ID>
               <DisplayName>lgreen</DisplayName>
          </Owner>
          <StorageClass>STANDARD</StorageClass>
          <Initiated>2017-02-22T14:47:39.527Z</Initiated>
     </Upload>
     <Upload>
          <Key>acctg/RulesAndRegulations.pdf</Key>
          <UploadId>94874826378433</UploadId>
          <Initiator>
               <ID>835be4b1-8f84-407b-8084-b9329beadf9b</ID>
               <DisplayName>lgreen</DisplayName>
          </Initiator>
          <Owner>
               <ID>835be4b1-8f84-407b-8084-b9329beadf9b</ID>
               <DisplayName>lgreen</DisplayName>
          </Owner>
          <StorageClass>STANDARD</StorageClass>
          <Initiated>2017-02-22T15:06:02.223Z</Initiated>
     </Upload>
</ListMultipartUploadsResult>

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.