GetConsoleOutput
Description
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
Name | Description | Required |
---|---|---|
| ID of the instance for which you want console output. Type: String Default: None | Yes |
Response Elements
Name | Description |
---|---|
|
Type: |
Ancestor: None
Children: requestId
, instanceId
, timestamp
, and output
requestId
The ID of the request.
Type: xsd:string
Ancestor: GetConsoleOutputResponseType
Children: None
instanceId
The instance ID.
Type: xsd:string
Ancestor: GetConsoleOutputResponseType
Children: None
timestamp
The time the output was last updated.
Type: xsd:dateTime
Ancestor: GetConsoleOutputResponseType
Children: None
output
The console output, Base64 encoded.
Type: xsd:string
Ancestor: GetConsoleOutputResponseType
Children: None
Examples
Example Request
This example retrieves the console output for the i-10a64379
Linux and UNIX instance.
https://ec2.amazonaws.com/?Action=GetConsoleOutput&InstanceId=i-10a64379&AuthParams
Example Response
<GetConsoleOutputResponse xmlns="http://ec2.amazonaws.com/doc/2009-07-15/"> <instanceId>i-28a64341</instanceId> <timestamp>2007-01-03 15:00:00</timestamp> <output>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj YyB2ZXJzaW9uIDQuMC4xIDIwMDUwNzI3IChSZWQgSGF0IDQuMC4xLTUpKSAjMSBTTVAgVGh1IE9j dCAyNiAwODo0MToyNiBTQVNUIDIwMDYKQklPUy1wcm92aWRlZCBwaHlzaWNhbCBSQU0gbWFwOgpY ZW46IDAwMDAwMDAwMDAwMDAwMDAgLSAwMDAwMDAwMDZhNDAwMDAwICh1c2FibGUpCjk4ME1CIEhJ R0hNRU0gYXZhaWxhYmxlLgo3MjdNQiBMT1dNRU0gYXZhaWxhYmxlLgpOWCAoRXhlY3V0ZSBEaXNh YmxlKSBwcm90ZWN0aW9uOiBhY3RpdmUKSVJRIGxvY2t1cCBkZXRlY3Rpb24gZGlzYWJsZWQKQnVp bHQgMSB6b25lbGlzdHMKS2VybmVsIGNvbW1hbmQgbGluZTogcm9vdD0vZGV2L3NkYTEgcm8gNApF bmFibGluZyBmYXN0IEZQVSBzYXZlIGFuZCByZXN0b3JlLi4uIGRvbmUuCg==</output> </GetConsoleOutputResponse>