• Object Storage Service

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

Examples

Sample Request

POST /example-object?uploadId=AAAsb2FkIElEIGZvciBlbHZpbmcncyWeeS1tb3ZpZS5tMnRzIRRwbG9hZA HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1
 Host: bucketname.obs.example.com 
 Accept: */*
 Date: Mon, 1 Nov 2010 20:34:56 GMT 
 Content-Length: 391 
 Authorization: AWS AKIAIOSFODNN7EXAMPLE:0RQf4/cRonhpaBX5sCYVf1bNRuU=
 Expect: 100-continue
 <CompleteMultipartUpload> 
 <Part> 
 <PartNumber>1</PartNumber> 
 <ETag>"a54357aff0632cce46d942af68356b38"</ETag> 
 </Part> 
 <Part> 
 <PartNumber>2</PartNumber> 
 <ETag>"0c78aef83f66abc1fa1e8477f296d394"</ETag> 
 </Part> 
 <Part> 
 <PartNumber>3</PartNumber> 
 <ETag>"acbd18db4cc2f85cedef654fccc4a4d8"</ETag> 
 </Part> 
 </CompleteMultipartUpload>

Sample Response

HTTP/1.1 200 OK 
 x-amz-id-2: Uuag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg== 
 x-amz-request-id: 656c76696e6727732072657175657374 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 x-reserved-indicator: 3
 Content-Type: application/xml
 Date: Mon, 1 Nov 2010 20:34:56 GMT 
 Connection: close 
 Content-Length: 306
 Server: OBS     
<?xml version="1.0" encoding="UTF-8"?> 
 <CompleteMultipartUploadResult xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <Location>http://example-Bucket.obs.example.com/example-Object</Location> 
 <Bucket>Example-Bucket</Bucket> 
 <Key>Example-Object</Key> 
 <ETag>"3858f62230ac3c915f300c664312c11f-9"</ETag> 
 </CompleteMultipartUploadResult>

Sample Request (Getting an Object Created from a Multipart Upload with Version ID Specified)

 POST /object?uploadId=DCD2FC9CAB7800000143947AB58A5094 HTTP/1.1
 User-Agent: Jakarta Commons-HttpClient/3.1
 Host: bucketname.obs.example.com 
 Accept: */*
 Date: Wed, 15 Jan 2014 06:09:39 +0000 
 Authorization: AWS C9590CEB8EC051BDEC9D:xQ9EFib6cohqMu2bLLJ0soseeUI= 
 Content-Length: 155   
 Expect: 100-continue
 <CompleteMultipartUpload> 
 <Part> 
 <PartNumber>1</PartNumber> 
 <ETag>"9fd2e548507ceef1a2183a8328b5cf2c"</ETag> 
 </Part> 
 </CompleteMultipartUpload>

Sample Response (Getting an Object Created from a Multipart Upload with Version ID Specified)

HTTP/1.1 200 OK 
 Server: OBS 
 x-amz-request-id: DCD2FC9CAB78000001439484FB045617 
 x-amz-id-2: xw5X6Y7YIpWnQgHNYG3ce4+lj8O1GjiGvFXSgdPV1x2tYn2iZXFnTJm0yh5X5XnV 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 x-reserved-indicator: 3
 Content-Type: application/xml 
 x-amz-version-id: AAABQ5R6tZ7c0vycq3gAAAAbVURTRkha 
 Date: Wed, 15 Jan 2014 06:09:39 GMT 
 Content-Length: 300 
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <CompleteMultipartUploadResult xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <Location>/example/multi</Location> 
 <Bucket>example</Bucket> 
 <Key>multi</Key> 
 <ETag>"59297fcb0de64c706cbb46e382d9c625-1"</ETag> 
 </CompleteMultipartUploadResult>