Sha256: 86b235f727115c0d35a9dce2bde8e8faed8c7fa374bfa04785f13f3a901b33ce

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Stops a virtual machine.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/stopVirtualMachine.html]
        def stop_virtual_machine(id, options={})
          options.merge!(
            'command' => 'stopVirtualMachine', 
            'id' => id  
          )
          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/stop_virtual_machine.rb