アカウント情報・コンテナ一覧取得
Description
コンテナ一覧を取得します。
ヘッダーからアカウント情報を参照することができます。
Request URL
ObjectStorage API v1
GET /v1/ze_{account}
Request Json
This operation does not accept a request body.
Request Parameters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | Userトークン | header | トークン発行 にて払い出されたID |
| X-Newest(Optional) | boolean | header | |
| Accept (Optional) | string | header | |
| account | テナントID | URI | API情報を確認する にてご確認ください。 |
| 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 |
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" \ https://object-storage.jpt1.cloud.z.com/v1/ze_テナントID
-
Response
HTTP/1.1 200 OK
Content-Length: 157
X-Account-Object-Count: 2
X-Account-Storage-Policy-Policy-0-Bytes-Used: 80831520
X-Account-Storage-Policy-Policy-0-Container-Count: 3
X-Timestamp: 1467082679.70992
X-Account-Storage-Policy-Policy-0-Object-Count: 2
X-Account-Bytes-Used: 80831520
X-Account-Container-Count: 3
Content-Type: application/json; charset=utf-8
Accept-Ranges: bytes
X-Trans-Id: tx24378a39f50f429995f0d-0057b6be81
Date: Fri, 19 Aug 2016 08:08:33 GMT
[
{
"bytes": 80831520,
"count": 1,
"name": "container-001"
},
{
"bytes": 0,
"count": 1,
"name": "container-002"
}
]