Sha256: 8a1ab3950a86578c4c96770ce5283b729f66aa9b0158cd0a895bedaf974269be

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Change ownership of a VM from one account to another. This API is available for Basic zones with security groups and Advanced zones with guest networks. A root administrator can reassign a VM from any account to any other account in any domain. A domain administrator can reassign a VM to any account in the same domain.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/assignVirtualMachine.html]
        def assign_virtual_machine(virtualmachineid, account, domainid, options={})
          options.merge!(
            'command' => 'assignVirtualMachine', 
            'virtualmachineid' => virtualmachineid, 
            'account' => account, 
            'domainid' => domainid  
          )
          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/assign_virtual_machine.rb