Sha256: f803f681ee48cabf405fe68bfcea5f8cfd9e90bcae0dafba5eb732b762e57a49
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
module Fog module AWS class EC2 # Detach an Amazon EBS volume from a running instance # # ==== Parameters # * volume_id<~String> - Id of amazon EBS volume to associate with instance # * options<~Hash>: # * 'Device'<~String> - Specifies how the device is exposed to the instance (e.g. "/dev/sdh") # * 'Force'<~Boolean> - If true forces detach, can cause data loss/corruption # * 'InstanceId'<~String> - Id of instance to associate volume with # # ==== Returns # * response<~Fog::AWS::Response>: # * body<~Hash>: # * 'attachTime'<~Time> - Time of attachment was initiated at # * 'device'<~String> - Device as it is exposed to the instance # * 'instanceId'<~String> - Id of instance for volume # * 'requestId'<~String> - Id of request # * 'status'<~String> - Status of volume # * 'volumeId'<~String> - Reference to volume def detach_volume(volume_id, options = {}) request({ 'Action' => 'DetachVolume', 'VolumeId' => volume_id }.merge!(options), Fog::Parsers::AWS::EC2::DetachVolume.new) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geemus-fog-0.0.0 | lib/fog/aws/requests/ec2/detach_volume.rb |
geemus-fog-0.0.1 | lib/fog/aws/requests/ec2/detach_volume.rb |
geemus-fog-0.0.3 | lib/fog/aws/requests/ec2/detach_volume.rb |