Get console output for an instance

Method URI Description
POST /v2/{tenant_id}/servers/{server_id}/action Gets console output for a server instance.

Normal response codes: 200

Request

This table shows the URI parameters for the get console output for an instance request:

Name Type Description
{tenant_id} String Project ID
{server_id} UUID The UUID for the server of interest to you.

This table shows the body parameters for the et console output for an instance request:

Name Type Description
length string Number of lines to fetch from end of console log.

Example. Get console output: JSON request


{
	"os-getConsoleOutput": {
		"length": 50
	}
}     
     

Response

Example. Get console output: JSON response


{
	"output": "FAKE CONSOLE OUTPUT\nANOTHER\nLAST LINE"
}