Sha256: 4ca719a75875879e4d89aac04337c8dff9051e4d09e68dae0e4e34168b707ea7
Contents?: true
Size: 1002 Bytes
Versions: 28
Compression:
Stored size: 1002 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.4/root_admin/assignVirtualMachine.html] def assign_virtual_machine(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'assignVirtualMachine') else options.merge!('command' => 'assignVirtualMachine', 'account' => args[0], 'virtualmachineid' => args[1], 'domainid' => args[2]) end request(options) end end end end end
Version data entries
28 entries across 26 versions & 4 rubygems