'Get a list of images.
The listing result is an object with property "items". Each item is
an image.
Example GET:
http://localhost/api/glance/images?sort_dir=desc&sort_key=name&name=cirros-0.3.2-x86_64-uec
The following get parameters may be passed in the GET
request:
:param paginate: If true will perform pagination based on settings.
:param marker: Specifies the namespace of the last-seen image.
The typical pattern of limit and marker is to make an
initial limited request and then to use the last
namespace from the response as the marker parameter
in a subsequent limited request. With paginate, limit
is automatically set.
:param sort_dir: The sort direction (\'asc\' or \'desc\').
:param sort_key: The field to sort on (for example, \'created_at\').
Default is created_at.
Any additional request parameters will be passed through the API as
filters. There are v1/v2 complications which are being addressed as a
separate work stream: https://review.openstack.org/#/c/150084/'

@rest_utils.ajax()
def get(self, request):

    (filters, kwargs) = rest_utils.parse_filters_kwargs(request, CLIENT_KEYWORDS)
    (images, has_more_data, has_prev_data) = api.glance.image_list_detailed(request, filters=filters, **kwargs)
    return {'items': [i.to_dict() for i in images], 'has_more_data': has_more_data, 'has_prev_data': has_prev_data}
