Get console output for an instance
| Method | URI | Description | 
|---|---|---|
| POST | /v2/{tenant_id}/servers/{server_id}/action | 仮想サーバのコンソールログを取得します。リクエストボディでos-getConsoleOutputアクションを指定してください。 | 
Normal response codes: 200
Request
下表は、インスタンス用コンソール取得リクエストのURIパラメーターの一覧です。
| Name | Type | Description | 
|---|---|---|
| {tenant_id} | String | プロジェクトID | 
| {server_id} | UUID | 対象とする仮想サーバの仮想サーバID | 
下表は、仮想サーバコンソール取得リクエストのボディ部のパラメーターの一覧です。
| Name | Type | Description | 
|---|---|---|
| os-getConsoleOutput | object | os-getConsoleOutputアクションを指定します。 | 
| length | string | コンソールログの最後から取得する行数。省略した場合、コンソールログ全てを返します。 | 
Example. Get console output: JSON request
{
	"os-getConsoleOutput": {
		"length": 50
	}
}     
     Response
Example. Get console output: JSON response
{
	"output": "FAKE CONSOLE OUTPUT\nANOTHER\nLAST LINE"
}