Method: Aws::Ec2#create_snapshot
- Defined in:
- lib/ec2/ec2.rb
#create_snapshot(volume_id) ⇒ Object
Create a snapshot of specified volume.
ec2.create_snapshot('vol-898a6fe0') #=>
{:aws_volume_id => "vol-fd9f7a94",
:aws_started_at => Tue Jun 24 18:40:40 UTC 2008,
:aws_progress => "",
:aws_status => "pending",
:aws_id => "snap-d56783bc"}
1227 1228 1229 1230 1231 1232 1233 |
# File 'lib/ec2/ec2.rb', line 1227 def create_snapshot(volume_id) link = generate_request("CreateSnapshot", "VolumeId" => volume_id.to_s) request_info(link, QEc2CreateSnapshotParser.new(:logger => @logger)) rescue Exception on_exception end |