GetConsoleOutput
The GetConsoleOutput
operation retrieves
console output for the specified instance.
Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least one hour after the most recent post.
Request Parameters
The following table describes the request parameters for
GetConsoleOutput
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
An instance ID returned from a previous call to Type: xsd:string |
Yes |
Response Elements
The following table describes the default response tags included
in GetConsoleOutput
responses.
Name | Description |
---|---|
|
The instance ID. Type: xsd:string |
|
The time the output was last updated. Type: xsd:dateTime |
|
The console output, Base64 encoded. Type: xsd:string |
Sample Request
<GetConsoleOutput xmlns="http://ec2.amazonaws.com/doc/2008-05-05"> <instanceId>i-28a64341</instanceId> </GetConsoleOutput>
Sample Response
<GetConsoleOutputResponse xmlns="http://ec2.amazonaws.com/doc/2008-05-05"> <instanceId>i-28a64341</instanceId> <timestamp>2007-01-03 15:00:00</timestamp> <output>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj YyB2ZXJzaW9uIDQuMC4xIDIwMDUwNzI3IChSZWQgSGF0IDQuMC4xLTUpKSAjMSBTTVAgVGh1IE9j dCAyNiAwODo0MToyNiBTQVNUIDIwMDYKQklPUy1wcm92aWRlZCBwaHlzaWNhbCBSQU0gbWFwOgpY ZW46IDAwMDAwMDAwMDAwMDAwMDAgLSAwMDAwMDAwMDZhNDAwMDAwICh1c2FibGUpCjk4ME1CIEhJ R0hNRU0gYXZhaWxhYmxlLgo3MjdNQiBMT1dNRU0gYXZhaWxhYmxlLgpOWCAoRXhlY3V0ZSBEaXNh YmxlKSBwcm90ZWN0aW9uOiBhY3RpdmUKSVJRIGxvY2t1cCBkZXRlY3Rpb24gZGlzYWJsZWQKQnVp bHQgMSB6b25lbGlzdHMKS2VybmVsIGNvbW1hbmQgbGluZTogcm9vdD0vZGV2L3NkYTEgcm8gNApF bmFibGluZyBmYXN0IEZQVSBzYXZlIGFuZCByZXN0b3JlLi4uIGRvbmUuCg==</output> </GetConsoleOutputResponse>