osc compute server get-console-output

Shows console output for a server.

This API returns the text of the console since boot. The content returned may be large. Limit the lines of console text, beginning at the tail of the content, by setting the optional length parameter in the request body.

The server to get console log from should set export LC_ALL=en_US.UTF-8 in order to avoid incorrect unicode error.

Normal response codes: 200

Error response codes: unauthorized(401), forbidden(403), notFound(404), conflict(409), methodNotImplemented(501)

Usage: osc compute server get-console-output [OPTIONS] <ID>

Arguments:

  • <ID> — id parameter for /v2.1/servers/{id}/action API

Options:

  • --length <LENGTH> — The number of lines to fetch from the end of console log. All lines will be returned if this is not specified.

    Note

    This parameter can be specified as not only ‘integer’ but also ‘string’.