'Return a list of dictionaries indicating the members of the
image, i.e., those tenants the image is shared with.
:param req: the Request object coming from the wsgi layer
:param image_id: The opaque image identifier
:returns: The response body is a mapping of the following form
{\'members\': [
{\'member_id\': <MEMBER>,
\'can_share\': <SHARE_PERMISSION>, ...}, ...'

def index(self, req, image_id):

    self._enforce(req, 'get_members')
    self._raise_404_if_image_deleted(req, image_id)
    try:
        members = registry.get_image_members(req.context, image_id)
    except exception.NotFound:
        msg = (_('Image    with    identifier    %s    not    found') % image_id)
        LOG.warn(msg)
        raise webob.exc.HTTPNotFound(msg)
    except exception.Forbidden:
        msg = _('Unauthorized    image    access')
        LOG.warn(msg)
        raise webob.exc.HTTPForbidden(msg)
    return dict(members=members)
