'List all active pools in scheduler.'

def get_pools(self, req):

    context = req.environ['cinder.context']
    authorize(context, 'get_pools')
    detail = utils.get_bool_param('detail', req.params)
    req_version = req.api_version_request
    filters = req.params.copy()
    filters.pop('detail', None)
    self._process_pool_filtering(context=context, filters=filters, req_version=req_version)
    if (not req_version.matches(GET_POOL_VOLUME_TYPE_FILTER_MICRO_VERSION)):
        filters.pop('volume_type', None)
    pools = self.scheduler_api.get_pools(context, filters=filters)
    return self._view_builder.pools(req, pools, detail)
