1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/ec2/create_snapshot.rb
2009-07-15 23:24:32 -07:00

21 lines
455 B
Ruby

module Fog
module AWS
class EC2
# Create a snapshot of an EBS volume and store it in S3
#
# ==== Parameters
# * volume_id<~String> - Id of EBS volume to snapshot
#
# ==== Returns
# FIXME: docs
def create_snapshot(volume_id)
request({
'Action' => 'CreateSnapshot',
'VolumeId' => volume_id
}, Fog::Parsers::AWS::EC2::CreateSnapshot.new)
end
end
end
end