ListParts

Lists the parts that have been uploaded for a specific multipart upload.

This operation must include the upload ID, which can be obtained by sending the initiate multipart upload request (see CreateMultipartUpload).

This request returns a maximum of 1,000 uploaded parts. The default number of parts returned is 1,000 parts. You can restrict the number of parts returned by specifying the max-parts request parameter. If your multipart upload consists of more than 1,000 parts, the response returns an IsTruncated field with the value of true, and a NextPartNumberMarker element. In subsequent ListParts requests, you can include the part-number-marker query string parameter and set its value to the NextPartNumberMarker field value from the previous response.

You must have Upload ACL to be able to call this action.

The following operations are related to ListParts:

Request Syntax

1GET /<KEY>?max-parts=<MAX_PARTS>&part-number-marker=<PART_NUMBER_MARKER>&uploadId=<UPLOAD_ID> HTTP/1.1
2Host: <BUCKET>.s3.tebi.io
  • <BUCKET>: Bucket name to which the upload was taking place. Required.

  • <KEY>: Key of the object for which the multipart upload was initiated. Required.

  • <MAX_PARTS>: Sets the maximum number of parts to return.

  • <PART_NUMBER_MARKER>: Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.

  • <UPLOAD_ID>: Upload ID that identifies the multipart upload. Required.

The request does not have a request body.

Response Syntax

 1HTTP/1.1 200
 2Content-Type: application/xml
 3Content-Length: <CONTENT_LENGTH>
 4
 5<?xml version="1.0" encoding="UTF-8"?>
 6<ListPartsResult>
 7    <Bucket>string</Bucket>
 8    <Key>string</Key>
 9    <UploadId>string</UploadId>
10    <PartNumberMarker>integer</PartNumberMarker>
11    <NextPartNumberMarker>integer</NextPartNumberMarker>
12    <MaxParts>integer</MaxParts>
13    <IsTruncated>boolean</IsTruncated>
14    <Part>
15        <ETag>string</ETag>
16        <LastModified>timestamp</LastModified>
17        <PartNumber>integer</PartNumber>
18        <Size>integer</Size>
19    </Part>
20    ...
21    <Initiator>
22        <DisplayName>string</DisplayName>
23        <ID>string</ID>
24    </Initiator>
25    <Owner>
26        <DisplayName>string</DisplayName>
27        <ID>string</ID>
28    </Owner>
29    <StorageClass>string</StorageClass>
30</ListPartsResult>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service:

  • ListPartsResult: Root level tag for the ListPartsResult parameters.

  • Bucket: Name of the bucket to which the multipart upload was initiated.

  • Initiator: Container element that identifies who initiated the multipart upload.

  • IsTruncated: Indicates whether the returned list of parts is truncated. A true value indicates that the list was truncated. A list can be truncated if the number of parts exceeds the limit returned in the MaxParts element.

  • Key: Object key for which the multipart upload was initiated.

  • MaxParts: Maximum number of parts that were allowed in the response.

  • NextPartNumberMarker: When a list is truncated, this element specifies the last part in the list, along with the value to use for the part-number-marker request parameter in a subsequent request.

  • Owner: Container element that identifies the object owner after the object is created.

  • Part: Container for elements related to a particular part. A response can contain zero or more part elements.

  • PartNumberMarker: When a list is truncated, this element specifies the last part in the list, along with the value to use for the part-number-marker request parameter in a subsequent request.

  • StorageClass: Class of storage used to store the uploaded object.

  • UploadId: Upload ID identifying the multipart upload whose parts are being listed.

See Also

Refer here for more information.