In my oVirt 4.1.9 env, vm's api is fine. I can get vm's diskattachments from /ovirt-engine/api/vms/<vm_id>/diskattachments. But for template, i got an error(404 not found) from /ovirt-engine/api/templates/<template_id>/diskattachments.
like...@cs2c.com.cn From: Idan Shaby Date: 2018-07-26 13:44 To: like...@cs2c.com.cn CC: users Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi Actually, it was added back in oVirt 4.0. What happens when you try to GET from /ovirt-engine/api/templates/<template_id>/diskattachments? Do you get an empty list of attachments or an error (404 not found)? Regards, Idan On Thu, Jul 26, 2018 at 4:10 AM, like...@cs2c.com.cn <like...@cs2c.com.cn> wrote: Thank you for your reply. I'm using ovirt 4.1.9, in this version there is no diskattachments under /ovirt-engine/api/templates/<template_id>, is it added in oVirt4.2? like...@cs2c.com.cn From: Idan Shaby Date: 2018-07-25 19:30 To: like...@cs2c.com.cn CC: users Subject: Re: [ovirt-users] template disk attribute in version 4 restapi Hi, The bootable attribute was moved, along with a few more attributes, to be under a specific diskattachment, as it is an attribute of the relationship between a disk and the specific VM it is attached to, rather than a disk (which can be floating, or attached to more than one VM). I am not sure that I understand the question. A template does have diskattachments under /ovirt-engine/api/templates/<template_id>/diskattachments. Which engine's version are you using? Regards, Idan On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn <like...@cs2c.com.cn> wrote: Hi All, In the restapi of version 3, there is bootable attribute in disk. But in version 4, the bootable attribute is removed from disk. For vm i can get bootable attribute from diskattachment. But there is no diskattachment in template. So, is there any way in the restapi of version 4 that i can know if the disk of the template is bootable or not? Thanks Regards. like...@cs2c.com.cn _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/3CMRZXMUNDGV54NTI6EFGOGKFR2MRVQP/