/** * Get Console Output * 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. * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-GetConsoleOutput.html * @param mixed $request array of parameters for Amazon_EC2_Model_GetConsoleOutputRequest request * or Amazon_EC2_Model_GetConsoleOutputRequest object itself * @see Amazon_EC2_Model_GetConsoleOutput * @return Amazon_EC2_Model_GetConsoleOutputResponse Amazon_EC2_Model_GetConsoleOutputResponse * * @throws Amazon_EC2_Exception */ public function getConsoleOutput($request) { if (!$request instanceof Amazon_EC2_Model_GetConsoleOutputRequest) { require_once 'Amazon/EC2/Model/GetConsoleOutputRequest.php'; $request = new Amazon_EC2_Model_GetConsoleOutputRequest($request); } require_once 'Amazon/EC2/Model/GetConsoleOutputResponse.php'; return Amazon_EC2_Model_GetConsoleOutputResponse::fromXML($this->_invoke($this->_convertGetConsoleOutput($request))); }
/** * Get Console Output * 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. * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-GetConsoleOutput.html * @param mixed $request array of parameters for Amazon_EC2_Model_GetConsoleOutput request or Amazon_EC2_Model_GetConsoleOutput object itself * @see Amazon_EC2_Model_GetConsoleOutput * @return Amazon_EC2_Model_GetConsoleOutputResponse Amazon_EC2_Model_GetConsoleOutputResponse * * @throws Amazon_EC2_Exception */ public function getConsoleOutput($request) { require_once 'Amazon/EC2/Model/GetConsoleOutputResponse.php'; return Amazon_EC2_Model_GetConsoleOutputResponse::fromXML($this->_invoke('GetConsoleOutput')); }