[Users] API usage - 3.1
Tom Brown
tom at ng23.net
Tue Jan 15 15:38:44 UTC 2013
>
> 1. you can find elements names in api schema (download it from [1] on your rhevm server).
> 2. vm creation details/examples can be found at [2].
>
> [1] http://server:[port]/api?schema
> [2] https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.1/pdf/Developer_Guide/Red_Hat_Enterprise_Virtualization-3.1-Developer_Guide-en-US.pdf
>
thankyou - i am however finding it hard to attach an iso image to a VM - I have the console etc sorted however what would be required to do the same with an iso image?
The below is working apart from the iso
thanks
vm_template = """<vm>
<name>%s</name>
<cluster>
<name>Default</name>
</cluster>
<template>
<name>Blank</name>
</template>
<type>server</type>
<memory>536870912</memory>
<display>
<type>vnc</type>
</display>
<os>
<boot dev="hd"/>
<boot dev="cdrom"/>
</os>
<cdrom>
<cdrom id="cobbler-base.iso"/>
</cdrom>
</vm>"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130115/1727a333/attachment-0001.html>
More information about the Users
mailing list