mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
455 B
Ruby
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
|