オブジェクトバージョン管理

Description

オブジェクトのバージョン管理を実施する場合に使用します。 バージョニング対象のコンテナに同名のファイルをアップロードした際に、 自動的に古いオブジェクトがバージョニング先のコンテナにtimestamp付で保存されます。
最新のオブジェクトを削除した場合、一世代古いファイルがバージョニング対象のコンテナに復元されます。

Request URL

ObjectStorage API v1

PUT /v1/ze_{account}/{container}

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 アカウント情報・コンテナ一覧取得にてご確認ください。
X-Versions-Location(Optional) string header 古いオブジェクト保存用コンテナを指定
X-Remove-Versions-Location(Optional) string header 空以外の値を指定し、オブジェクトバージョニングを無効化します

Response

  • Normal response codes
202

Example

  • Request
curl -i -X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: トークンID" \
-H "X-Versions-Location: 古いオブジェクト保存用コンテナ" \
https://object-storage.jpt1.cloud.z.com/v1/ze_テナントID/バージョニング対象コンテナ名
  • Response
HTTP/1.1 202 Accepted
Content-Length: 76
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txab996c8ef0bd465cabd7d-0057bbfee5
Date: Tue, 23 Aug 2016 07:44:38 GMT

<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html>

Internet for everyone

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