Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

9.9. swift list

Usage: swift list
Lists the containers for the account or the objects for a container.

Positional arguments

[container]


        Name of container to list object in.

Optional arguments

-l, --long


        Long listing format, similar to ls -l.

--lh


        Report sizes in human readable format similar to
      ls -lh.

-t, --totals


        Used with -l or --lh, only report totals.

-p <prefix>, --prefix <prefix>


      Only list items beginning with the prefix.

-d <delim>, --delimiter <delim>


      Roll up items with the given delimiter. For containers
      only. See OpenStack Swift API documentation for what
      this means.