Example 727. Describing an EBS Volume
describeVolume allows you to get information on an EBS Volume or a set
of EBS Volumes. If nothing is passed in then it will return all EBS Volumes. If only
one EBS Volume needs to be described a string can be passed in while an array of
EBS Volume Id's can be passed in to describe them.
describeVolume will return an array with information about each Volume
which includes the volumeId, size, status and createTime. If the volume is attached
to an instance, an addition value of attachmentSet will be returned. The attachment
set contains information about the instance that the EBS Volume is attached to,
which includes volumeId, instanceId, device, status and attachTime.
<?php
$ec2_ebs = new Zend_Service_Amazon_Ec2_Ebs('aws_key','aws_secret_key');
$return = $ec2_ebs->describeVolume('volumeId');
Example 728. Describe Attached Volumes
To return a list of EBS Volumes currently attached to a running instance you can call this method. It will only return EBS Volumes attached to the instance with the passed in instanceId.
describeAttachedVolumes returns the same information as the
describeVolume but only for the EBS Volumes that are currently attached
to the specified instanceId.
<?php
$ec2_ebs = new Zend_Service_Amazon_Ec2_Ebs('aws_key','aws_secret_key');
$return = $ec2_ebs->describeAttachedVolumes('instanceId');
Example 729. Describe an EBS Volume Snapshot
describeSnapshot allows you to get information on an EBS Volume
Snapshot or a set of EBS Volume Snapshots. If nothing is passed in then it will
return information about all EBS Volume Snapshots. If only one EBS Volume Snapshot
needs to be described its snapshotId can be passed in while an array of EBS Volume
Snapshot Id's can be passed in to describe them.
describeSnapshot will return an array containing information about each
EBS Volume Snapshot which includes the snapshotId, volumeId, status, startTime and
progress.
<?php
$ec2_ebs = new Zend_Service_Amazon_Ec2_Ebs('aws_key','aws_secret_key');
$return = $ec2_ebs->describeSnapshot('volumeId');




