'Get a list of cinder services.
Will return HTTP 501 status code if the service_list extension is
not supported.'

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

    if (api.base.is_service_enabled(request, 'volume') and api.cinder.extension_supported(request, 'Services')):
        result = api.cinder.service_list(request)
        return {'items': [{'binary': u.binary, 'host': u.host, 'zone': u.zone, 'updated_at': u.updated_at, 'status': u.status, 'state': u.state, 'id': (idx + 1)} for (idx, u) in enumerate(result)]}
    else:
        raise rest_utils.AjaxError(501, '')
