コード例 #1
0
 /**
  * Get Password Data 
  * Retrieves the encrypted administrator password for the instances running Windows.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-GetPasswordData.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_GetPasswordDataRequest request
  * or Amazon_EC2_Model_GetPasswordDataRequest object itself
  * @see Amazon_EC2_Model_GetPasswordData
  * @return Amazon_EC2_Model_GetPasswordDataResponse Amazon_EC2_Model_GetPasswordDataResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function getPasswordData($request)
 {
     if (!$request instanceof Amazon_EC2_Model_GetPasswordDataRequest) {
         require_once 'Amazon/EC2/Model/GetPasswordDataRequest.php';
         $request = new Amazon_EC2_Model_GetPasswordDataRequest($request);
     }
     require_once 'Amazon/EC2/Model/GetPasswordDataResponse.php';
     return Amazon_EC2_Model_GetPasswordDataResponse::fromXML($this->_invoke($this->_convertGetPasswordData($request)));
 }
コード例 #2
0
ファイル: Mock.php プロジェクト: edasque/ec2-manage-snapshots
 /**
  * Get Password Data 
  * Retrieves the encrypted administrator password for the instances running Windows.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-GetPasswordData.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_GetPasswordData request or Amazon_EC2_Model_GetPasswordData object itself
  * @see Amazon_EC2_Model_GetPasswordData
  * @return Amazon_EC2_Model_GetPasswordDataResponse Amazon_EC2_Model_GetPasswordDataResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function getPasswordData($request)
 {
     require_once 'Amazon/EC2/Model/GetPasswordDataResponse.php';
     return Amazon_EC2_Model_GetPasswordDataResponse::fromXML($this->_invoke('GetPasswordData'));
 }