[one-users] vm list in ruby
Héctor Sanjuán
hsanjuan at opennebula.org
Wed May 25 13:54:23 PDT 2011
Hi, not sure this is the best solution but basicly get the VM pool and
filter those with the desired Host_ID:
pool = VirtualMachinePool.new(client)
rc = pool.info
return if OpenNebula.is_error?(rc)
pool.each do | vm |
puts "#{vm['ID']}:#{vm['NAME']}" if vm['HISTORY/HID'] == HOST_ID
end
Hope it helps,
Hector
El 25/05/11 16:36, Cristiano Corsani escribió:
> Hi all,
>
> how can i retrive the list of vm from a specific host in ruby?
>
--
Héctor Sanjuan
OpenNebula.org
More information about the Users
mailing list