<div dir="ltr"><div><div>Hi Daniel,<br><br></div>Okay.. Thanks..<br><br></div>I will try and get back to you if any issues exists..<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 11:53 AM, Daniel Erez <span dir="ltr"><<a href="mailto:derez@redhat.com" target="_blank">derez@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
<br>
----- Original Message -----<br>
> From: "Doron Fediuck" <<a href="mailto:dfediuck@redhat.com">dfediuck@redhat.com</a>><br>
> To: "Shanil S" <<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a>><br>
> Cc: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Wednesday, August 27, 2014 5:45:04 PM<br>
> Subject: Re: [ovirt-users] Snapshot preview,clone and undo using ovirt api<br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> > From: "Shanil S" <<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a>><br>
> > To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> > Sent: Wednesday, August 27, 2014 2:07:15 PM<br>
> > Subject: [ovirt-users] Snapshot preview,clone and undo using ovirt api<br>
> ><br>
> > Hi All,<br>
> ><br>
> > In the ovirt admin panel, it is possible to do the following snapshots<br>
> > actions<br>
> ><br>
> > 1. Clone<br>
> > 2. Preview<br>
> > 3. Undo<br>
> ><br>
> > but i couldn't find out any direct api methods to do these actions, Is it<br>
> > possible to it using the ovirt api ?<br>
<br>
</div>Hi Shanil,<br>
<br>
Preview/Undo actions can be invoked from VM context.<br>
I.e.:<br>
/api/vms/{vm_id}/preview_snapshot<br>
/api/vms/{vm_id}/undo_snapshot<br>
<br>
These actions are supported only on versions > 3.4,<br>
in older versions, use 'restore' (which is 'preview + commit'):<br>
/api/vms/{vm_id}/snapshots/{snapshot_id}/restore<br>
<br>
To clone a VM from snapshot, POST to /api/vms :<br>
<vm><br>
...<br>
<snapshots><br>
<snapshot id={snapshot_id}/><br>
</snapshots><br>
...<br>
</vm><br>
<div class=""><br>
> ><br>
> ><br>
> > --<br>
> > Regards<br>
> > Shanil<br>
> ><br>
><br>
> Hi Shanil,<br>
> take a look here:<br>
> <a href="http://www.ovirt.org/Features/Single_Disk_Snapshot#REST-API" target="_blank">http://www.ovirt.org/Features/Single_Disk_Snapshot#REST-API</a><br>
><br>
> Maybe Allon or other can add some info if needed.<br>
><br>
> Doron<br>
</div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
</blockquote></div><br></div>