'Returns a list a host aggregate\'s id, name, availability_zone.'

@extensions.expected_errors(())
def index(self, req):

    context = _get_context(req)
    context.can((aggr_policies.POLICY_ROOT % 'index'))
    aggregates = self.api.get_aggregate_list(context)
    return {'aggregates': [self._marshall_aggregate(req, a)['aggregate'] for a in aggregates]}
