This page is only for existing customers of the S3 Glacier service using Vaults and the original REST API from 2012.
If you're looking for archival storage solutions we suggest using the S3 Glacier storage classes in Amazon S3, S3 Glacier Instant Retrieval, S3 Glacier Flexible Retrieval, and S3 Glacier Deep Archive. To learn more about these storage options, see S3 Glacier storage classes
List Parts (GET uploadID)
Description
This multipart upload operation lists the parts of an archive that have been uploaded in a specific multipart upload identified by an upload ID. For information about multipart upload, see Uploading Large Archives in Parts (Multipart Upload).
You can make this request at any time during an in-progress multipart upload before you complete the multipart upload. S3 Glacier returns the part list sorted by range you specified in each part upload. If you send a List Parts request after completing the multipart upload, Amazon S3 Glacier (S3 Glacier) returns an error.
The List Parts operation supports pagination. You should always check the
Marker
field in the response body for a marker at which to continue the
list. if there are no more items the marker
field is null
. If
the marker
is not null, to fetch the next set of parts you sent another
List Parts request with the marker
request parameter set to the marker
value S3 Glacier returned in response to your previous List Parts request.
You can also limit the number of parts returned in the response by specifying the
limit
parameter in the request.
Requests
Syntax
To list the parts of an in-progress multipart upload, you send a GET
request
to the URI of the multipart upload ID resource. The multipart upload ID is returned
when you initiate a multipart upload (Initiate Multipart Upload (POST
multipart-uploads)). You may optionally specify
marker
and limit
parameters.
GET /
AccountId
/vaults/VaultName
/multipart-uploads/uploadID
HTTP/1.1 Host: glacier.Region
.amazonaws.com Date:Date
Authorization:SignatureValue
x-amz-glacier-version: 2012-06-01
Note
The AccountId
value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.
Request Parameters
Name | Description | Required |
---|---|---|
limit
|
The maximum number of parts to be returned. The default limit is 50. The number of parts returned might be fewer than the specified limit, but the number of returned parts never exceeds the limit. Type: String Constraints: Minimum integer value of |
No |
marker
|
An opaque string used for pagination. Type: String Constraints: None |
No |
Request Headers
This operation uses only response headers that are common to most responses. For information about common response headers, see Common Response Headers.
Request Body
This operation does not have a request body.
Responses
Syntax
HTTP/1.1 200 OK x-amzn-RequestId: x-amzn-RequestId Date: Date Content-Type: application/json Content-Length: Length { "ArchiveDescription" : String, "CreationDate" : String, "Marker": String, "MultipartUploadId" : String, "PartSizeInBytes" : Number, "Parts" : [ { "RangeInBytes" : String, "SHA256TreeHash" : String }, ... ], "VaultARN" : String }
Response Headers
This operation uses only response headers that are common to most responses. For information about common response headers, see Common Response Headers.
Response Body
The response body contains the following JSON fields.
- ArchiveDescription
-
The description of the archive that was specified in the Initiate Multipart Upload request. This field is
null
if no archive description was specified in the Initiate Multipart Upload operation.Type: String
- CreationDate
-
The UTC time that the multipart upload was initiated.
Type: String. A string representation in the ISO 8601 date format, for example
2013-03-20T17:03:43.221Z
. - Marker
-
An opaque string that represents where to continue pagination of the results. You use the
marker
in a new List Parts request to obtain more jobs in the list. If there are no more parts, this value isnull
.Type: String
- MultipartUploadId
-
The ID of the upload to which the parts are associated.
Type: String
- PartSizeInBytes
-
The part size in bytes. This is the same value that you specified in the Initiate Multipart Upload request.
Type: Number
- Parts
-
A list of the part sizes of the multipart upload. Each object in the array contains a
RangeBytes
andsha256-tree-hash
name/value pair.Type: Array
- RangeInBytes
-
The byte range of a part, inclusive of the upper value of the range.
Type: String
- SHA256TreeHash
-
The SHA256 tree hash value that S3 Glacier calculated for the part. This field is never
null
.Type: String
- VaultARN
-
The Amazon Resource Name (ARN) of the vault to which the multipart upload was initiated.
Type: String
Errors
For information about Amazon S3 Glacier exceptions and error messages, see Error Responses.
Examples
Example: List Parts of a Multipart Upload
The following example lists all the parts of an upload. The example sends an HTTP
GET
request to the URI of the specific multipart upload ID of an
in-progress multipart upload and returns up to 1,000 parts.
Example Request
GET /-/vaults/examplevault/multipart-uploads/OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE HTTP/1.1 Host: glacier.us-west-2.amazonaws.com x-amz-Date: 20170210T120000Z x-amz-glacier-version: 2012-06-01 Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20141123/us-west-2/glacier/aws4_request,SignedHeaders=host;x-amz-date;x-amz-glacier-version,Signature=9257c16da6b25a715ce900a5b45b03da0447acf430195dcb540091b12966f2a2
Example Response
In the response, S3 Glacier returns a list of uploaded parts associated with the specified
multipart upload ID. In this example, there are only two parts. The returned
Marker
field is null
indicating that there are no
more parts of the multipart upload.
HTTP/1.1 200 OK x-amzn-RequestId: AAABZpJrTyioDC_HsOmHae8EZp_uBSJr6cnGOLKp_XJCl-Q Date: Wed, 10 Feb 2017 12:00:00 GMT Content-Type: application/json Content-Length: 412 { "ArchiveDescription" : "archive description", "CreationDate" : "2012-03-20T17:03:43.221Z", "Marker": null, "MultipartUploadId" : "OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE", "PartSizeInBytes" : 4194304, "Parts" : [ { "RangeInBytes" : "0-4194303", "SHA256TreeHash" : "01d34dabf7be316472c93b1ef80721f5d4" }, { "RangeInBytes" : "4194304-8388607", "SHA256TreeHash" : "0195875365afda349fc21c84c099987164" }], "VaultARN" : "arn:aws:glacier:us-west-2:012345678901:vaults/demo1-vault" }
Example: List Parts of a Multipart Upload (Specify the Marker and the Limit Request Parameters)
The following example demonstrates how to use pagination to get a limited number of
results. The example sends an HTTP GET
request to the URI of the
specific multipart upload ID of an in-progress multipart upload to return one part.
A starting marker
parameter specifies at which part to start the part
list. You can get the marker
value from the response of a previous
request for a part list. Furthermore, in this example, the limit
parameter is set to 1 and returns one part. Note that the Marker
field
is not null
, indicating that there is at least one more part to obtain.
Example Request
GET /-/vaults/examplevault/multipart-uploads/OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE?marker=1001&limit=1 HTTP/1.1 Host: glacier.us-west-2.amazonaws.com x-amz-Date: 20170210T120000Z x-amz-glacier-version: 2012-06-01 Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20141123/us-west-2/glacier/aws4_request,SignedHeaders=host;x-amz-date;x-amz-glacier-version,Signature=9257c16da6b25a715ce900a5b45b03da0447acf430195dcb540091b12966f2a2
Example Response
In the response, S3 Glacier returns a list of uploaded parts that are associated with the specified in-progress multipart upload ID.
HTTP/1.1 200 OK x-amzn-RequestId: AAABZpJrTyioDC_HsOmHae8EZp_uBSJr6cnGOLKp_XJCl-Q Date: Wed, 10 Feb 2017 12:00:00 GMT Content-Type: text/json Content-Length: 412 { "ArchiveDescription" : "archive description 1", "CreationDate" : "2012-03-20T17:03:43.221Z", "Marker": "MfgsKHVjbQ6EldVl72bn3_n5h2TaGZQUO-Qb3B9j3TITf7WajQ", "MultipartUploadId" : "OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE", "PartSizeInBytes" : 4194304, "Parts" : [ { "RangeInBytes" : "4194304-8388607", "SHA256TreeHash" : "01d34dabf7be316472c93b1ef80721f5d4" }], "VaultARN" : "arn:aws:glacier:us-west-2:012345678901:vaults/demo1-vault" }
Related Sections