openstack-manuals/doc/user-guide/source/cli-swift-create-containers.rst
Maria Zlatkova b94d0b58d4 [user-guide] Changes underscore to hyphen in RST files
Adds the following changes:

- Renames all the RST files in the user-guide folder to use
  hyphens instead of underscores;
- Adds redirects to the renamed files to .htaccess.

Change-Id: Ic5f1a90421add35d001363cd39bada0b56a04d7f
Implements: blueprint consistency-file-rename
2016-08-10 18:00:13 +03:00

1.2 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