コンテナ情報取得
Description
コンテナ情報を取得します。
Request URL
ObjectStorage API v1
GET /v1/gac50_{account}/{container}
Request Json
This operation does not accept a request body.
Request Parameters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | トークンID | header | トークン発行 にて払い出されたID |
| X-Newest(Optional) | boolean | header | |
| Accept(Optional) | string | header | |
| account | テナントID | URI | テナントID |
| container | コンテナ名 | URI | コンテナ名 |
| limit(Optional) | int | query | |
| marker(Optional) | string | query | |
| end_maker(Optional) | string | query | |
| format(Optional) | string | query | |
| prefix(Optional) | string | query | |
| delimiter(Optional) | char | query | |
| path (Optional) | string | query |
Response
-
Normal response codes
200
Example
-
Request
curl -i -X GET \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "X-Auth-Token: トークンID" \ オブジェクトストレージエンドポイント/コンテナ名
-
Response
HTTP/1.1 200 OK
Content-Length: 344
X-Container-Object-Count: 2
Accept-Ranges: bytes
X-Storage-Policy: Policy-0
X-Container-Bytes-Used: 20971520
X-Timestamp: 1522317163.49191
Content-Type: application/json; charset=utf-8
X-Trans-Id: tx40fc580298a04ddca8143-005abe1a3e
Date: Fri, 30 Mar 2018 11:06:38 GMT
[
{
"hash": "オブジェクトのハッシュ値",
"last_modified": "オブジェクトのアップロード日時",
"bytes": オブジェクトのファイルサイズ,
"name": "オブジェクトのファイル名",
"content_type": "application/json"
},
{
"hash": "オブジェクトのハッシュ値",
"last_modified": "オブジェクトのアップロード日時",
"bytes": オブジェクトのファイルサイズ,
"name": "オブジェクトのファイル名",
"content_type": "application/json"
}
]