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