Exemplo n.º 1
0
 /**
  * Create Snapshot 
  * Create a snapshot of the volume identified by volume ID. A volume does not have to be detached
  * at the time the snapshot is taken.
  * Important Note:
  * Snapshot creation requires that the system is in a consistent state.
  * For instance, this means that if taking a snapshot of a database, the tables must
  * be read-only locked to ensure that the snapshot will not contain a corrupted
  * version of the database.  Therefore, be careful when using this API to ensure that
  * the system remains in the consistent state until the create snapshot status
  * has returned.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-CreateSnapshot.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateSnapshotRequest request
  * or Amazon_EC2_Model_CreateSnapshotRequest object itself
  * @see Amazon_EC2_Model_CreateSnapshot
  * @return Amazon_EC2_Model_CreateSnapshotResponse Amazon_EC2_Model_CreateSnapshotResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createSnapshot($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateSnapshotRequest) {
         require_once 'Amazon/EC2/Model/CreateSnapshotRequest.php';
         $request = new Amazon_EC2_Model_CreateSnapshotRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateSnapshotResponse.php';
     return Amazon_EC2_Model_CreateSnapshotResponse::fromXML($this->_invoke($this->_convertCreateSnapshot($request)));
 }
Exemplo n.º 2
0
 /**
  * Create Snapshot 
  * Create a snapshot of the volume identified by volume ID. A volume does not have to be detached
  * at the time the snapshot is taken.
  * Important Note:
  * Snapshot creation requires that the system is in a consistent state.
  * For instance, this means that if taking a snapshot of a database, the tables must
  * be read-only locked to ensure that the snapshot will not contain a corrupted
  * version of the database.  Therefore, be careful when using this API to ensure that
  * the system remains in the consistent state until the create snapshot status
  * has returned.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-CreateSnapshot.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateSnapshot request or Amazon_EC2_Model_CreateSnapshot object itself
  * @see Amazon_EC2_Model_CreateSnapshot
  * @return Amazon_EC2_Model_CreateSnapshotResponse Amazon_EC2_Model_CreateSnapshotResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createSnapshot($request)
 {
     require_once 'Amazon/EC2/Model/CreateSnapshotResponse.php';
     return Amazon_EC2_Model_CreateSnapshotResponse::fromXML($this->_invoke('CreateSnapshot'));
 }