'Returns a list of server details for a given user.'

@extensions.expected_errors((400, 403))
@validation.query_schema(schema_servers.query_params_v226, '2.26')
@validation.query_schema(schema_servers.query_params_v21, '2.1', '2.25')
def detail(self, req):

    context = req.environ['nova.context']
    context.can((server_policies.SERVERS % 'detail'))
    try:
        servers = self._get_servers(req, is_detail=True)
    except exception.Invalid as err:
        raise exc.HTTPBadRequest(explanation=err.format_message())
    return servers
