Service/Amazon/Ec2/Ebs.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_Amazon
- Subpackage
- Ec2
- Version
- $Id$
\Zend_Service_Amazon_Ec2_Ebs
- Parent(s)
- \Zend_Service_Amazon_Ec2_Abstract < \Zend_Service_Amazon_Abstract < \Zend_Service_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
attachVolume(string $volumeId, string $instanceId, string $device) : array
Attaches an Amazon EBS volume to an instance
Name | Type | Description |
---|---|---|
$volumeId | string | The ID of the Amazon EBS volume |
$instanceId | string | The ID of the instance to which the volume attaches |
$device | string | Specifies how the device is exposed to the instance (e.g., /dev/sdh). |
Type | Description |
---|---|
array |
createNewVolume(string $size, string $availabilityZone) : array
Creates a new Amazon EBS volume that you can mount from any Amazon EC2 instance.
Name | Type | Description |
---|---|---|
$size | string | The size of the volume, in GiB. |
$availabilityZone | string | The availability zone in which to create the new volume. |
Type | Description |
---|---|
array |
createSnapshot(string $volumeId) : array
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
Name | Type | Description |
---|---|---|
$volumeId | string | The ID of the Amazon EBS volume to snapshot |
Type | Description |
---|---|
array |
createVolumeFromSnapshot(string $snapshotId, string $availabilityZone) : array
Creates a new Amazon EBS volume that you can mount from any Amazon EC2 instance.
Name | Type | Description |
---|---|---|
$snapshotId | string | The snapshot from which to create the new volume. |
$availabilityZone | string | The availability zone in which to create the new volume. |
Type | Description |
---|---|
array |
deleteSnapshot(string $snapshotId) : boolean
Deletes a snapshot of an Amazon EBS volume that is stored in Amazon S3
Name | Type | Description |
---|---|---|
$snapshotId | string | The ID of the Amazon EBS snapshot to delete |
Type | Description |
---|---|
boolean |
deleteVolume(string $volumeId) : boolean
Deletes an Amazon EBS volume
Name | Type | Description |
---|---|---|
$volumeId | string | The ID of the volume to delete |
Type | Description |
---|---|
boolean |
describeSnapshot(string | array $snapshotId = null) : array
Describes the status of Amazon EBS snapshots
Name | Type | Description |
---|---|---|
$snapshotId | string | array | The ID or arry of ID's of the Amazon EBS snapshot |
Type | Description |
---|---|
array |
describeVolume(string | array $volumeId = null) : array
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.
Name | Type | Description |
---|---|---|
$volumeId | string | array | The ID or array of ID's of the volume(s) to list |
Type | Description |
---|---|
array |
detachVolume(string $volumeId, string $instanceId = null, string $device = null, boolean $force = false) : array
Detaches an Amazon EBS volume from an instance
Name | Type | Description |
---|---|---|
$volumeId | string | The ID of the Amazon EBS volume |
$instanceId | string | The ID of the instance from which the volume will detach |
$device | string | The device name |
$force | boolean | Forces detachment if the previous detachment attempt did not occur cleanly
|
Type | Description |
---|---|
array |