Two parameters are available to sort the list of images returned by these methods.

The following example will return a list of images sorted alphabetically by name in ascending order.

..code-block:: python

from glance.client import Client

c = Client("glance.example.com", 9292)

print c.get_images(sort_key='name', sort_dir='asc')



loading table of contents...