client/lib/deltacloud/client/methods/storage_volume.rb
# Attach the Storage Volume to the Instance
# The +device+ parameter could be used if supported.
#
# - volume_id -> Volume ID (eg. 'vol1')
# - instance_id -> Target Instance ID (eg. 'inst1')
# - device -> Target device in Instance (eg. '/dev/sda2')
#
Attach the Storage Volume to the Instance
The +device+ parameter could be used if supported.

> Volume ID
instance_id -> Target Instance ID
device -> Target device in Instance
Attach the Storage Volume to the Instance The + device + parameter could be used if supported . > Volume ID instance_id - > Target Instance ID device - > Target device in Instance
def attach_storage_volume(volume_id, instance_id, device=nil)
        must_support! :storage_volumes
        result = connection.post(api_uri("/storage_volumes/#{volume_id}/attach")) do |r|
          r.params = { :instance_id => instance_id, :device => device }
        end
        if result.status.is_ok?
          from_resource(:storage_volume, result)
        end
      end
def attach_storage_volume ( volume_id , instance_id , device = nil ) must_support! :storage_volumes result = connection . post ( api_uri ( "/storage_volumes/#{volume_id}/attach" ) ) do | r | r . params = { :instance_id => instance_id , :device => device } end if result . status . is_ok? from_resource ( :storage_volume , result ) end end
Attach the Storage Volume to the Instance
The +device+ parameter could be used if supported.
Attach the Storage Volume to the Instance The + device + parameter could be used if supported .
volume_id
<not_specific>
instance_id
<not_specific>
device
<not_specific>