Sha256: ab293ff2dbbaa3045ccaf3b3798a94d3114e5184b6ddf7a4c1f743ec7e3bfe27

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Scales the virtual machine to a new service offering.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/scaleVirtualMachine.html]
        def scale_virtual_machine(id, serviceofferingid, options={})
          options.merge!(
            'command' => 'scaleVirtualMachine', 
            'id' => id, 
            'serviceofferingid' => serviceofferingid  
          )
          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/scale_virtual_machine.rb