コンテナーを作成するには、以下のコマンドを実行します。CONTAINER
はお使いのコンテナーの名前と置き換えてください。
$ swift post CONTAINER
以下のコマンドを実行して、すべてのコンテナーを一覧表示します。
$ swift list
コンテナーの状態を確認するために、以下のコマンドを実行します。
$ swift stat
Account: AUTH_7b5970fbe7724bf9b74c245e77c03bcg
Containers: 2
Objects: 3
Bytes: 268826
Accept-Ranges: bytes
X-Timestamp: 1392683866.17952
Content-Type: text/plain; charset=utf-8
また、 swift stat コマンドは、パラメーターとして ACCOUNT
または CONTAINER
名と合わせて使用することができます。
$ swift stat CONTAINER
Account: AUTH_7b5970fbe7724bf9b74c245e77c03bcg
Container: storage1
Objects: 2
Bytes: 240221
Read ACL:
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Timestamp: 1392683866.20180
Content-Type: text/plain; charset=utf-8
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.