Sha256: 5d037433a12a6bcbb092e9392344f77dc9a9ab0dd66982808203762621efd297

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Restore a VM to original template/ISO or new template/ISO
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/restoreVirtualMachine.html]
        def restore_virtual_machine(virtualmachineid, options={})
          options.merge!(
            'command' => 'restoreVirtualMachine', 
            '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/restore_virtual_machine.rb