<div dir="ltr"><div><div>Hi Amit,</div><div>the value is disk.get_actual_size(), but i see that after create snapshot the value is the disk snapshot e not base. right?</div></div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-21 8:40 GMT-03:00 Amit Aviram <span dir="ltr">&lt;<a href="mailto:aaviram@redhat.com" target="_blank">aaviram@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Marcelo.<div><br><div>Using the API:</div><div>-   &quot;disk.get_actual_size()&quot; will return the actual size in bytes, which is the value you can find as &quot;Actual size&quot; in GB in oVirt&#39;s webadmin, where Idan wrote (Virtual Machines tab -&gt; Disks sub tab -&gt; actual size, Thanks Idan)</div><div><br></div><div>- &quot;disk.get_provisioned_size()&quot; will return the size in bytes which is the value you can find as &quot;Virtual size&quot; in GB also under the disks sub tab.</div><div><br></div><div>After transforming the value you got to GB, does the values seem correct?</div><div><br></div><div>Thanks, Amit.</div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 21, 2016 at 1:08 PM, Marcelo Leandro <span dir="ltr">&lt;<a href="mailto:marceloltmm@gmail.com" target="_blank">marceloltmm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Thanks for reply, but for my script is necessary consult the actual size with python-api or database.</p><div><div>
<div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Marcelo,<br><br></div>Please note that under the Virtual Machines tab -&gt; Disks sub tab, assuming we are talking about an image, you can click on the Images radio button and see the disk&#39;s virtual and actual  size.<br></div>Hope it helps.<br></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br>Regards,<br></div>Idan<br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Apr 21, 2016 at 6:06 AM, Marcelo Leandro <span dir="ltr">&lt;<a href="mailto:marceloltmm@gmail.com" target="_blank">marceloltmm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,</div><div><br></div><div>i am try automate an task, i am try consult the actual size the disk of vm, but not have success, i try in database in table imagens, i try with python-api with command:</div><div><br></div><div>vm = api.vms.get(vmname)</div><div>disk =  vm.disks.get(diskname)</div><div>disk.get_actual_size()</div><div><br></div><div>but the informations  not is equal with that shown in the dashboard.</div><div><br></div><div>Can someone help me?</div></div><div> </div><div><br></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>