• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Objects
  5. Complete Multipart Upload
  6. Responses

Responses

Syntax

HTTP/1.1 status_code 
 x-amz-id-2: id 
 x-amz-request-id: request id 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 x-reserved-indicator: indicator
 Content-Type: type
 Date: date 
 Connection: state 
 Server: server     
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <CompleteMultipartUploadResult xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <Location>http://example-Bucket.obs.example.com/example-Object</Location> 
 <Bucket>BucketName</Bucket> 
 <Key>ObjectName</Key> 
 <ETag>ETag</ETag> 
 </CompleteMultipartUploadResult>

Response Headers

This response uses common headers. For details about common response headers, see section Common Response Headers.

This response also uses one optional header, as described in Table 1.

Table 1 Optional response header

Header

Description

x-amz-version-id

Indicates the version ID of the object created from a multipart upload.

Type: String

x-amz-server-side-encryption

This header is included in a response if SSE-KMS is used.

Type: string

Example: x-amz-server-side-encryption:aws:kms

x-amz-server-side-encryption-aws-kms-key-id

Indicates the master key ID. This header is included in a response if SSE-KMS is used.

Example: x-amz-server-side-encryption-aws-kms-key-id:arn:aws:kms:sichuan:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0

x-amz-server-side-encryption-customer-algorithm

Indicates an encryption algorithm. This header is included in a response if SSE-C is used.

Type: string

Example: x-amz-server-side-encryption-customer-algorithm:AES256

Response Elements

This response contains elements to indicate the results of completing a multipart upload. Table 2 describes the elements.

Table 2 Response elements

Element

Description

Location

Indicates the URL of the newly created object.

Type: String

Bucket

Indicates the bucket that contains the newly created object.

Type: String

Key

Indicates the key of the newly created object.

Type: String

ETag

Indicates the ETag that identifies the metadata of the newly created object. This ETag is calculated using the MD5 values of parts comprising the newly created object.

Type: String

Error Responses

  • If the request contains no request body, OBS returns status code 400 Bad Request.
  • If the request contains a request body in incorrect syntax, OBS returns status code 400 Bad Request.
  • If parts are not listed in the request body in ascending order, OBS returns status code 400 Bad Request and error code InvalidPartOrder.
  • If an AK or signature is invalid, OBS returns status code 403 Forbidden and error code AccessDenied.
  • If the requested bucket does not exist, OBS returns status code 404 Not Found and error code NoSuchBucket.
  • If the requested multipart upload does not exist, OBS returns 404 NotFound and error code NoSuchUpload.
  • If the requester is not the initiator of the multipart upload, OBS returns status code 403 Forbidden and error code AccessDenied.
  • If the part list contains nonexistent parts, OBS returns status code 400 Bad Request and error code InvalidPart.
  • If the ETag of a part in the part list is incorrect, OBS returns status code 400 Bad Request and error code InvalidPart.
  • If the size of a part (excluding the last part) in the part list is smaller than 5 MB, OBS returns status code 400 Bad Request.
  • If the size of the newly created object is greater than 48.8 TB, OBS returns status code 400 Bad Request.

For details about other error responses, see Table 1.