Zend Framework  1.12
Public Member Functions | List of all members
Zend_Service_Amazon_Ec2_Ebs Class Reference

Public Member Functions

 createNewVolume ($size, $availabilityZone)
 Creates a new Amazon EBS volume that you can mount from any Amazon EC2 instance.
 
 createVolumeFromSnapshot ($snapshotId, $availabilityZone)
 Creates a new Amazon EBS volume that you can mount from any Amazon EC2 instance.
 
 describeVolume ($volumeId=null)
 Lists one or more Amazon EBS volumes that you own, If you do not specify any volumes, Amazon EBS returns all volumes that you own.
 
 describeAttachedVolumes ($instanceId)
 
 attachVolume ($volumeId, $instanceId, $device)
 Attaches an Amazon EBS volume to an instance.
 
 detachVolume ($volumeId, $instanceId=null, $device=null, $force=false)
 Detaches an Amazon EBS volume from an instance.
 
 deleteVolume ($volumeId)
 Deletes an Amazon EBS volume.
 
 createSnapshot ($volumeId)
 Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3.
 
 describeSnapshot ($snapshotId=null)
 Describes the status of Amazon EBS snapshots.
 
 deleteSnapshot ($snapshotId)
 Deletes a snapshot of an Amazon EBS volume that is stored in Amazon S3.
 
- Public Member Functions inherited from Zend_Service_Amazon_Ec2_Abstract
 __construct ($accessKey=null, $secretKey=null, $region=null)
 Create Amazon client.
 
- Public Member Functions inherited from Zend_Service_Amazon_Abstract
 __construct ($accessKey=null, $secretKey=null)
 Create Amazon client.
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Service_Amazon_Ec2_Abstract
static setRegion ($region)
 Set which region you are working in.
 
- Protected Member Functions inherited from Zend_Service_Amazon_Ec2_Abstract
 _getRegion ()
 Method to fetch the AWS Region.
 
 sendRequest (array $params=array())
 Sends a HTTP request to the queue service using Zend_Http_Client.
 
 addRequiredParameters (array $parameters)
 Adds required authentication and version parameters to an array of parameters.
 
 signParameters (array $paramaters)
 Computes the RFC 2104-compliant HMAC signature for request parameters.
 
- Protected Attributes inherited from Zend_Service_Amazon_Ec2_Abstract
 $_ec2Endpoint = 'ec2.amazonaws.com'
 The HTTP query server.
 
 $_ec2ApiVersion = '2009-04-04'
 The API version to use.
 
 $_ec2SignatureVersion = '2'
 Signature Version.
 
 $_ec2SignatureMethod = 'HmacSHA256'
 Signature Encoding Method.
 
 $_httpTimeout = 10
 Period after which HTTP request will timeout in seconds.
 
 $_region
 
- Static Protected Attributes inherited from Zend_Service_Amazon_Ec2_Abstract
static $_defaultRegion = null
 
static $_validEc2Regions = array('eu-west-1', 'us-east-1')
 

Member Function Documentation

attachVolume (   $volumeId,
  $instanceId,
  $device 
)

Attaches an Amazon EBS volume to an instance.

Parameters
string$volumeIdThe ID of the Amazon EBS volume
string$instanceIdThe ID of the instance to which the volume attaches
string$deviceSpecifies how the device is exposed to the instance (e.g., /dev/sdh).
Returns
array
createNewVolume (   $size,
  $availabilityZone 
)

Creates a new Amazon EBS volume that you can mount from any Amazon EC2 instance.

You must specify an availability zone when creating a volume. The volume and any instance to which it attaches must be in the same availability zone.

Parameters
string$sizeThe size of the volume, in GiB.
string$availabilityZoneThe availability zone in which to create the new volume.
Returns
array
createSnapshot (   $volumeId)

Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3.

You can use snapshots for backups, to launch instances from identical snapshots, and to save data before shutting down an instance

Parameters
string$volumeIdThe ID of the Amazon EBS volume to snapshot
Returns
array
createVolumeFromSnapshot (   $snapshotId,
  $availabilityZone 
)

Creates a new Amazon EBS volume that you can mount from any Amazon EC2 instance.

You must specify an availability zone when creating a volume. The volume and any instance to which it attaches must be in the same availability zone.

Parameters
string$snapshotIdThe snapshot from which to create the new volume.
string$availabilityZoneThe availability zone in which to create the new volume.
Returns
array
deleteSnapshot (   $snapshotId)

Deletes a snapshot of an Amazon EBS volume that is stored in Amazon S3.

Parameters
string$snapshotIdThe ID of the Amazon EBS snapshot to delete
Returns
boolean
deleteVolume (   $volumeId)

Deletes an Amazon EBS volume.

Parameters
string$volumeIdThe ID of the volume to delete
Returns
boolean
describeAttachedVolumes (   $instanceId)
describeSnapshot (   $snapshotId = null)

Describes the status of Amazon EBS snapshots.

Parameters
string | array$snapshotIdThe ID or arry of ID's of the Amazon EBS snapshot
Returns
array
describeVolume (   $volumeId = null)

Lists one or more Amazon EBS volumes that you own, If you do not specify any volumes, Amazon EBS returns all volumes that you own.

Parameters
string | array$volumeIdThe ID or array of ID's of the volume(s) to list
Returns
array
detachVolume (   $volumeId,
  $instanceId = null,
  $device = null,
  $force = false 
)

Detaches an Amazon EBS volume from an instance.

Parameters
string$volumeIdThe ID of the Amazon EBS volume
string$instanceIdThe ID of the instance from which the volume will detach
string$deviceThe device name
boolean$forceForces detachment if the previous detachment attempt did not occur cleanly (logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach an instance from a failed instance. The instance will not have an opportunity to flush file system caches nor file system meta data.
Returns
array