PUT Object - Copy

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
 
m (1 revision)
 

Latest revision as of 14:36, 30 May 2016

adds an creates a copy of an object that is already stored in HS2 object to a bucket

PUT /ObjectName

[edit] Requests

Syntax
PUT /DestObjectName HTTP/1.1
Host: DestBucketName.hs2.hostway.com
Date: date
Authorization: signatureValue
x-amz-copy-source: /SrcBucketName/SrcObjectName
x-amz-acl: acl
Parameters

This implementation of the operation does not use request parameters.

Headers
  • x-amz-acl: The canned ACL to apply to the object.
  • x-amz-copy-source: The name of the source bucket and key name of the source object, separated by a slash (/).
Elements in body

This implementation of the operation does not use request elements.

[edit] Responses

Headers

This implementation of the operation uses only response headers that are common to most responses

Elements
  • CopyObjectResult: Container for all response elements.
  • Etag: Returns the ETag of the new object.
  • LastModified: Returns the date the object was last modified.

[edit] Examples

Sample Request
PUT /DestObjectName HTTP/1.1
Host: DestBucketName.hs2.hostway.com
Date: date
Authorization: AWS signatureValue
x-amz-coyp-source: /SrcBucketName/SrcObjectName
Sample Response
HTTP/1.1 200 OK
Date : date
Connection : keep-alive
Content-Length : length

<CopyObjectResult>
  <LastModified>date</LastModified>
  <ETag>etag</ETag>
</CopyObjectResult>
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox