O'Reilly logo

OpenStack Object Storage (Swift) Essentials by Sreedhar Varma, Kris Rajana, Amar Kapadia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Swift CLI Commands

This appendix provides details on the set of commands that can be run from a Swift CLI session. These commands can be used to perform CRUD operations.

Commands

The commands that can be run from the Swift CLI are list, stat, post, upload, download, and delete. Each command has a detailed help menu, which can be displayed by running the swift <command> –h command, for example, swift list -h.

list

The list command is used to list the containers for an account or the objects for a container. The following code shows the usage of the list command along with arguments:

# swift list   <container>  
  -A Auth_URL 
  –U User –K Key 
  --os-username=<auth-user-name> 
  --os-password=<auth-password>  
 --os-tenant-id=<auth-tenant-id>  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required