mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
22 lines
517 B
Ruby
22 lines
517 B
Ruby
![]() |
module Fog
|
||
|
module AWS
|
||
|
class EC2
|
||
|
|
||
|
# Describe all or specified snapshots
|
||
|
#
|
||
|
# ==== Parameters
|
||
|
# * snapshot_id<~Array> - List of snapshots to describe, defaults to all
|
||
|
#
|
||
|
# ==== Returns
|
||
|
# FIXME: docs
|
||
|
def describe_snapshots(snapshot_id = [])
|
||
|
params = indexed_params('SnapshotId', snapshot_id)
|
||
|
request({
|
||
|
'Action' => 'DescribeSnapshots'
|
||
|
}.merge!(params), Fog::Parsers::AWS::EC2::DescribeSnapshots.new)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|