[one-users] Oca 3 template instantiate

Carlos Fernández Iglesias ciglesias at cesga.es
Mon Dec 19 07:58:40 PST 2011


Thank you very much.

Greetings,


El vie 16 dic 2011 18:37:55 CET, Daniel Molina escribió:
> Hi Carlos,
>
> 2011/12/14 Carlos Fernández Iglesias<ciglesias at cesga.es>:
>> Hello,
>>
>> Is there a way to know the "vmid"  "oca.VmTemplate.instantiate(name='name')"
>> is going to assign to the virtual machine?
>
> In the following link you can find the response from the xmlrpc
> request which includes the ID assigned to the new vm:
> http://www.opennebula.org/documentation:rel3.0:api#onetemplateinstantiate
>
>>
>> And
>>
>> Can you retrieve the content of a template from oca so it can be used in
>> "oca.VirtualMachine.allocate(client, template)" ?
>
> The following method will retrieve the informartion of the template in
> XML format, therefore you will have to convert it to the template
> syntax:
> http://www.opennebula.org/documentation:rel3.0:api#onetemplateinfo
>
> If you are using the ruby binding there is a template_to_str method
> for this task.
>
> Kind regards
>
>>
>> Thank you.
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>





More information about the Users mailing list