openstack-manuals/doc/user-guide/source/cli_swift_create_containers.rst
Andreas Jaeger 28d95bfc66 End User Guide: Remove user_only and orphan
With the split of the User Guides, there's no need anymore to have
orphan and user_only flags, remove them from the user-guide
directory.

Only files that keep :orphan: are
doc/user-guide/source/hot-guide/hot_advanced_topics.rst and
hot_existing_templates.rst since these files are not currently included.

Change-Id: I1ac0356d69d8668785f8b1947e8b061731aca747
2015-05-13 18:09:16 +00:00

1.1 KiB

Create and manage containers

  • To create a container, run the following command and replace CONTAINER with the name of your container.

    $ swift post CONTAINER
  • To list all containers, run the following command:

    $ swift list
  • To check the status of containers, run the following command:

    $ 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

    You can also use the swift stat command with the ACCOUNT or CONTAINER names as parameters.

    $ 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