Sha256: 5420a2106258b5287e717673508b8d04c7ce314f44a4fe8e5fa05351e4428b90

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Attempts Migration of a VM with its volumes to a different host
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/migrateVirtualMachineWithVolume.html]
        def migrate_virtual_machine_with_volume(hostid, virtualmachineid, options={})
          options.merge!(
            'command' => 'migrateVirtualMachineWithVolume', 
            'hostid' => hostid, 
            'virtualmachineid' => virtualmachineid  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb