ConoHa API Documantation

dynamic large objects - ObjectStorage API v1

Description

5Gより大きいファイルをアップロードする際に、使用します。

Request URL

Swift API v1.0

PUT /v1/nc_{account}/{container}/{object}

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header
account tenant ID URI
container コンテナ名 URI
object オブジェクト名 URI
X-Object-Manifest (Optional) string header

Request Json

This operation does not accept a request body.

Normal response code

201

Example

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

  • REQ
curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H 'X-Object-Manifest: dlo_container_segments/segment_6000M_file_' \
https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container/6000M_file --data-binary ''
  • RES
HTTP/1.1 201 Created
Last-Modified: Fri, 08 May 2015 01:38:57 GMT
Content-Length: 0
Etag: d41d8cd98f00b204e9800998ecf8427e
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx21dcef7bf244499e86525-00554c13b0
Date: Fri, 08 May 2015 01:38:56 GMT

Using

1.ファイルを分割

split -b 1000m 6000M_file segment_6000M_file_

2.コンテナ作成

curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container

3.セグメントファイル用コンテナ作成

curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments

4.セグメントファイルアップロード

curl -i -X PUT -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments/ -T segment_6000M_file_aa
curl -i -X PUT -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments/ -T segment_6000M_file_ab
curl -i -X PUT -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments/ -T segment_6000M_file_ac
curl -i -X PUT -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments/ -T segment_6000M_file_ad
curl -i -X PUT -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments/ -T segment_6000M_file_ae
curl -i -X PUT -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container_segments/ -T segment_6000M_file_af

5.manifestファイル作成

curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H 'X-Object-Manifest: dlo_container_segments/segment_6000M_file_' \
https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/dlo_container/6000M_file --data-binary ''