'Get a list of lines of console output.
The listing result is an object with property "items". Each item is
a line of output from the server.
Example GET:
http://localhost/api/nova/servers/abcd/console-output/'

@rest_utils.ajax()
def post(self, request, server_id):

    log_length = request.DATA.get('length', 100)
    console_lines = api.nova.server_console_output(request, server_id, tail_length=log_length)
    return {'lines': [x for x in console_lines.split('\n')]}
