[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Delete a snapshot



Hi Vijay,

You could look at vmpp ( VM Protection Policy ) to take periodic snapshots and delete the oldest one.

Another safe way would be to create a Parent-Child relation amongst the VM-Snapshot and compare the dates / timestamps.
Have you checked the "other-config (MRW): last_shutdown_time " ?

- RJ


On Mon, Jun 25, 2012 at 9:45 AM, Vijay Ramadoss <vramadoss@xxxxxxxxxx> wrote:

Hi – I am trying to figure out a way to delete a snapshot from a VM and could not find the right API to do that. I basically want to delete the most oldest snapshot of a VM. How do I do that?
I found the timetamp field of the VM class, but that  is returning invalid timestamp for a timestamp for me for some reason. Any idea how to figure out the oldest snapshot and delete it?

 

Any help would be appreciated.

 

Regards,

Vijay R

 


This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.