O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

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

Listing containers and objects

The swift client tool allows you to easily list containers and objects within your OpenStack Storage account.

Getting ready

Log in to a computer or server that has the swift client package installed.

How to do it...

Carry out the following to list objects within the OpenStack Storage environment:

Listing all objects in a container

In the preceding recipes, we uploaded a small number of files. To simply list the objects within our test container, we issue the following command:

swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack list test

This will show output similar to the following:

How to do it...

Listing specific ...

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