ConoHa API Documantation

コンテナ情報取得 - ObjectStorage API v1

Description

Request URL

Swift API v1.0

GET /v1/nc_​{account}​/​{container}​

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header
X-Newest (Optional) boolean header
Accept (Optional) string header
account tenant ID URI
container コンテナ名 URI
limit (Optional) int query
marker (Optional) string query
end_marker (Optional) string query
format (Optional) string query
prefix (Optional) string query
delimiter (Optional) char query
path (Optional) string query

Request Json

This operation does not accept a request body.

Normal response code

200, 204

Example

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

  • REQ
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container
  • RES
HTTP/1.1 200 OK
Content-Length: 170
X-Container-Object-Count: 1
Accept-Ranges: bytes
X-Storage-Policy: Policy-0
X-Container-Bytes-Used: 10240
X-Timestamp: 1430986963.50220
Content-Type: application/json; charset=utf-8
X-Trans-Id: txbbafdf46c2fb4496903da-00554b2134
Date: Thu, 07 May 2015 08:24:20 GMT

[
    {
        "hash": "1276481102f218c981e0324180bafd9f",
        "last_modified": "2015-05-07T08:24:16.697500",
        "bytes": 10240,
        "name": "file1",
        "content_type": "application/octet-stream"
    }
]