Sha256: eb4c6b5b8b422ecffb2dc9c8f73307aafc00b72d44573c69c302765a11ca0ce3

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Revert VM from a vmsnapshot.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/revertToVMSnapshot.html]
        def revert_to_vm_snapshot(vmsnapshotid, options={})
          options.merge!(
            'command' => 'revertToVMSnapshot', 
            'vmsnapshotid' => vmsnapshotid  
          )
          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/revert_to_vm_snapshot.rb