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.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ID of the instance for which you want console output. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Get the EC2 console output.
// Instantiate the class $ec2 = new AmazonEC2(); // Get console output $response = $ec2->get_console_output('i-1f549375'); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/ec2.class.php | Toggle source view (15 lines) | View on GitHub