Sha256: efaad8b0a3bf3f653498225e992d56cfcf35ea7534d226ca83dbc6c535447657

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Changes the service offering for a virtual machine. The virtual machine must be in a "Stopped" state for this command to take effect.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/changeServiceForVirtualMachine.html]
        def change_service_for_virtual_machine(serviceofferingid, id, options={})
          options.merge!(
            'command' => 'changeServiceForVirtualMachine', 
            'serviceofferingid' => serviceofferingid, 
            '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/change_service_for_virtual_machine.rb