オブジェクト複製

Description

オブジェクトを複製します。

Request URL

ObjectStorage API v1

COPY /v1/ze_{account}/{container}/{object}

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン発行 にて払い出されたID
account テナントID URI API情報を確認する にてご確認ください。
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 string header

Response

  • Normal response codes
201

Example

  • Request
curl -i -X COPY \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: トークンID" \
-H "Destination: コンテナ名/複製先オブジェクト名" \
https://object-storage.jpt1.cloud.z.com/v1/ze_テナントID/コンテナ名/オブジェクト名
  • Response
HTTP/1.1 201 Created
Content-Length: 0
X-Copied-From-Last-Modified: Mon, 22 Aug 2016 08:49:54 GMT
X-Copied-From: container-001/file1
Last-Modified: Mon, 22 Aug 2016 09:00:11 GMT
Etag: 68cff55117c320b49a06813cbc2fc648
X-Copied-From-Account: ze_9f5d648993f54cf683fb3d0cb3b0bf26
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx0f03274b72124bff93636-0057babf1a
Date: Mon, 22 Aug 2016 09:00:16 GMT

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.