Zend Framework
1.12
|
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. | |
![]() | |
__construct ($accessKey=null, $secretKey=null, $region=null) | |
Create Amazon client. | |
![]() | |
__construct ($accessKey=null, $secretKey=null) | |
Create Amazon client. | |
Additional Inherited Members | |
![]() | |
static | setRegion ($region) |
Set which region you are working in. | |
![]() | |
_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. | |
![]() | |
$_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 | $_defaultRegion = null |
static | $_validEc2Regions = array('eu-west-1', 'us-east-1') |
attachVolume | ( | $volumeId, | |
$instanceId, | |||
$device | |||
) |
Attaches an Amazon EBS volume to an instance.
string | $volumeId | The ID of the Amazon EBS volume |
string | $instanceId | The ID of the instance to which the volume attaches |
string | $device | Specifies how the device is exposed to the instance (e.g., /dev/sdh). |
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.
string | $size | The size of the volume, in GiB. |
string | $availabilityZone | The availability zone in which to create the new volume. |
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
string | $volumeId | The ID of the Amazon EBS volume to snapshot |
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.
string | $snapshotId | The snapshot from which to create the new volume. |
string | $availabilityZone | The availability zone in which to create the new volume. |
deleteSnapshot | ( | $snapshotId | ) |
Deletes a snapshot of an Amazon EBS volume that is stored in Amazon S3.
string | $snapshotId | The ID of the Amazon EBS snapshot to delete |
deleteVolume | ( | $volumeId | ) |
Deletes an Amazon EBS volume.
string | $volumeId | The ID of the volume to delete |
describeAttachedVolumes | ( | $instanceId | ) |
describeSnapshot | ( | $snapshotId = null | ) |
Describes the status of Amazon EBS snapshots.
string | array | $snapshotId | The ID or arry of ID's of the Amazon EBS snapshot |
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.
string | array | $volumeId | The ID or array of ID's of the volume(s) to list |
detachVolume | ( | $volumeId, | |
$instanceId = null , |
|||
$device = null , |
|||
$force = false |
|||
) |
Detaches an Amazon EBS volume from an instance.
string | $volumeId | The ID of the Amazon EBS volume |
string | $instanceId | The ID of the instance from which the volume will detach |
string | $device | The device name |
boolean | $force | Forces 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. |