DiegoSanjuan / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

Delete a VM #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Being able to delete a VM would be extremely useful. Is this a limitation on 
the vSphere SDK or on pysphere. If its pysphere I would be more than happy to 
write the module for it. 

Original issue reported on code.google.com by tmlemm@gmail.com on 5 Apr 2012 at 12:52

GoogleCodeExporter commented 8 years ago
Check this thread from the discussion group:
http://groups.google.com/group/pysphere/browse_thread/thread/be1d6c1af114160d#

It is explained there how to unregister a VM and later how to remove its files 
from the datastore.

But I agree with you that a simpler interface should be added (probably to the 
VIServer class).
Something like:  "delete_vm_by_path(path, remove_files=True)".

I'm leaving this issue opened. But I'll change the type label from Defect to 
Enhancement.

Thanks for your contribution!

Original comment by argo...@gmail.com on 5 Apr 2012 at 3:15

GoogleCodeExporter commented 8 years ago
i've implemented the 'delete_vm_by_path(path, remove_files=True)'
function, how can i submit my code to this project?

Original comment by micr...@gmail.com on 1 Feb 2013 at 5:54

GoogleCodeExporter commented 8 years ago
in addition i've implemented 'delete_vm_by_name(name, remove_files=True)'

Original comment by micr...@gmail.com on 2 Feb 2013 at 1:36

GoogleCodeExporter commented 8 years ago
attached patch file for:
delete_vm_by_path
delete_vm_by_name

Original comment by micr...@gmail.com on 26 Mar 2013 at 11:22

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, this is extremely useful.

Until you submit the code, how can we use it in my code?
I'm new to python and can't seem to get around the @/+/- signs in file.

Original comment by roylib...@gmail.com on 5 May 2013 at 6:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for the patch! I've cleaned it up a bit (line endings, raises instead of 
prints). 

To apply it just use the patch command:
patch <original file> <patch file>

-update 07/17/13: sry, typo-

Original comment by peter.fr...@lusini.com on 17 Jul 2013 at 3:39

Attachments:

GoogleCodeExporter commented 8 years ago
When will this be implemented? 

Original comment by CatDaaa...@gmail.com on 26 Dec 2013 at 10:50

GoogleCodeExporter commented 8 years ago
bump

Original comment by steve.r....@gmail.com on 9 Oct 2014 at 6:08

GoogleCodeExporter commented 8 years ago
guys check out pyvmomi, official vmware python sdk

Original comment by micr...@gmail.com on 9 Oct 2014 at 9:16