• Object Storage Service

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

Examples

Sample Request

PUT /newobject?partNumber=1&uploadId=VCVsb2FkIElEIGZvciBlbZZpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZR HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1
 Host: bucketname.obs.example.com
 Accept: */* 
 Date: Mon, 11 Apr 2011 20:34:56 GMT 
 x-amz-copy-source: /source-bucket/sourceobject 
 x-amz-copy-source-range:bytes=500-6291456 
 Authorization: AWS AKIAIOSFODNN7EXAMPLE:VGhpcyBtZXNzYWdlIHNpZ25lZGGieSRlbHZpbmc= 
 Content-Length: 5120

Sample Response

HTTP/1.1 200 OK 
 Server: OBS
 x-amz-id-2: Vvag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg== 
 x-amz-request-id: 656c76696e6727732072657175657374 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 Content-Type: application/xml
 Date: Mon, 11 Apr 2011 20:34:56 GMT   
 Transfer-Encoding: chunked

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <CopyPartResult xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <LastModified>2009-10-28T22:32:00</LastModified> <ETag>"9b2cf535f27731c974343645a3985328"</ETag>  
 </CopyPartResult>