Description

Request URL

Swift API v1.0

COPY /v1/zc_{account}​/​{container}​/​{object}​

Request Parameters

Parameter Value Style Description
X-Auth-Token User Token header
account tenant ID URI
container Container Name URI
object Object Name URI
Destination string header
Content-Type (Optional) string header
Content-Encoding (Optional) string header
Content-Disposition (Optional) string header
X-Object-Meta-name (Optional) string header

Request Json

This operation does not accept a request body.

Normal response code

201

Example

curl -i -X COPY \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H "Destination: container2/file10" \
https://object-storage.tyo1.cloud.z.com/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container/file1
HTTP/1.1 201 Created
Content-Length: 0
X-Copied-From-Last-Modified: Thu, 07 May 2015 08:31:29 GMT
X-Copied-From: container/file1
Last-Modified: Thu, 07 May 2015 13:06:54 GMT
Etag: 1276481102f218c981e0324180bafd9f
X-Copied-From-Account: nc_cc54f7476b8e444bad238a943a94ccdf
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx630713eff06249cda9368-00554b636d
Date: Thu, 07 May 2015 13:06:53 GMT