GetConsoleOutput
The GetConsoleOutput
operation retrieves
console output that has been posted for the specified instance.
Instance console output is buffered and posted shortly after instance boot, reboot and once the instance is terminated. Only the most recent 64 KB of posted output is available. Console output is available for at least 1 hour after the most recent post.
The following table describes the request parameters for
GetConsoleOutput
. Parameter names are case
sensitive.
Element Name | Definition | Required? | Type |
---|---|---|---|
InstanceId
|
An instance ID returned from a previous call to RunInstances .
|
Yes |
string
|
The following table describes the default response tags included
in GetConsoleOutput
responses.
Element Name | Definition | Type |
---|---|---|
instanceId
|
The instance ID. |
xsd:string
|
timestamp
|
The time the output was last updated. |
xsd:dateTime
|
output
|
The console output, Base64 encoded. |
xsd:string
|
https://ec2.amazonaws.com/ ?Action=GetConsoleOutput &InstanceId.1=i-2ea64347 &...auth parameters...
<GetConsoleOutputResponse xmlns="http://ec2.amazonaws.com/doc/2007-01-03"> <instanceId>i-28a64341</instanceId> <timestamp>2007-01-03 15:00:00</timestamp> <output>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj YyB2ZXJzaW9uIDQuMC4xIDIwMDUwNzI3IChSZWQgSGF0IDQuMC4xLTUpKSAjMSBTTVAgVGh1IE9j dCAyNiAwODo0MToyNiBTQVNUIDIwMDYKQklPUy1wcm92aWRlZCBwaHlzaWNhbCBSQU0gbWFwOgpY ZW46IDAwMDAwMDAwMDAwMDAwMDAgLSAwMDAwMDAwMDZhNDAwMDAwICh1c2FibGUpCjk4ME1CIEhJ R0hNRU0gYXZhaWxhYmxlLgo3MjdNQiBMT1dNRU0gYXZhaWxhYmxlLgpOWCAoRXhlY3V0ZSBEaXNh YmxlKSBwcm90ZWN0aW9uOiBhY3RpdmUKSVJRIGxvY2t1cCBkZXRlY3Rpb24gZGlzYWJsZWQKQnVp bHQgMSB6b25lbGlzdHMKS2VybmVsIGNvbW1hbmQgbGluZTogcm9vdD0vZGV2L3NkYTEgcm8gNApF bmFibGluZyBmYXN0IEZQVSBzYXZlIGFuZCByZXN0b3JlLi4uIGRvbmUuCg==</output> </GetConsoleOutputResponse>