ConoHa API Documantation

オブジェクト複製 - ObjectStorage API v1

Description

Request URL

Swift API v1.0

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

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header
account tenant ID URI
container コンテナ名 URI
object オブジェクト名 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

※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X COPY \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H "Destination: container2/file10" \
https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container/file1
  • RES
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