Hi Florian,

Works perfectly.

vm['TEMPLATE/CPU']
vm['TEMPLATE/MEMORY']
vm['TEMPLATE/CONTEXT/IP_PUBLIC']

It was in XMLElement page [1].

Thanks a lot!

[1]
http://opennebula.org/doc/2.2/oca/ruby/classes/OpenNebula/XMLElement.html

2011/6/20 <[email protected]>

> Hi Paulo,
>
> try:
> vmpool=VirtualMachinePool.new(@one_client)
> vmpool.info
> vm['TEMPLATE/MEMORY']
> vm['TEMPLATE/CPU']
>
> There's also some documentation on this somewhere in the OpenNebula API
> pagesÅ 
>
> Cheers,
> Florian
>
>
>
> Von:  Paulo A L Rego <[email protected]>
> Datum:  Mon, 20 Jun 2011 11:37:14 -0300
> An:  <[email protected]>
> Betreff:  [one-users] Get VM info with Ruby OCA API
>
>
> Hello,
>
> I'm trying to get informations about ip, memory and cpu from Virtual
> Machine.
> I was using the method VirtualMachine.info, but i saw at documentation
> that it returns nil in case of success.
> The info method is just for error check?
>
> Is there any method that get this informations ou should i use
> xmlrpc/client and implement my own?
>
> Thanks
>
> _______________________________________________
> Users mailing list
> [email protected]://
> lists.opennebula.org/listinfo.cgi/users-op
> ennebula.org<http://lists.opennebula.org/listinfo.cgi/users-op%0Aennebula.org>
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to