Ejemplo n.º 1
0
 /**
  * Reboot Instances 
  * The RebootInstances operation requests a reboot of one or more instances. This
  * operation is asynchronous; it only queues a request to reboot the specified
  * instance(s). The operation will succeed if the instances are valid and belong
  * to the user. Requests to reboot terminated instances are ignored.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-RebootInstances.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_RebootInstancesRequest request
  * or Amazon_EC2_Model_RebootInstancesRequest object itself
  * @see Amazon_EC2_Model_RebootInstances
  * @return Amazon_EC2_Model_RebootInstancesResponse Amazon_EC2_Model_RebootInstancesResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function rebootInstances($request)
 {
     if (!$request instanceof Amazon_EC2_Model_RebootInstancesRequest) {
         require_once 'Amazon/EC2/Model/RebootInstancesRequest.php';
         $request = new Amazon_EC2_Model_RebootInstancesRequest($request);
     }
     require_once 'Amazon/EC2/Model/RebootInstancesResponse.php';
     return Amazon_EC2_Model_RebootInstancesResponse::fromXML($this->_invoke($this->_convertRebootInstances($request)));
 }
Ejemplo n.º 2
0
 /**
  * Reboot Instances 
  * The RebootInstances operation requests a reboot of one or more instances. This
  * operation is asynchronous; it only queues a request to reboot the specified
  * instance(s). The operation will succeed if the instances are valid and belong
  * to the user. Requests to reboot terminated instances are ignored.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-RebootInstances.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_RebootInstances request or Amazon_EC2_Model_RebootInstances object itself
  * @see Amazon_EC2_Model_RebootInstances
  * @return Amazon_EC2_Model_RebootInstancesResponse Amazon_EC2_Model_RebootInstancesResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function rebootInstances($request)
 {
     require_once 'Amazon/EC2/Model/RebootInstancesResponse.php';
     return Amazon_EC2_Model_RebootInstancesResponse::fromXML($this->_invoke('RebootInstances'));
 }