Comments (10)
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 [email protected]
on 5 Apr 2012 at 3:15
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from pysphere.
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 [email protected]
on 1 Feb 2013 at 5:54
from pysphere.
in addition i've implemented 'delete_vm_by_name(name, remove_files=True)'
Original comment by [email protected]
on 2 Feb 2013 at 1:36
from pysphere.
attached patch file for:
delete_vm_by_path
delete_vm_by_name
Original comment by [email protected]
on 26 Mar 2013 at 11:22
Attachments:
from pysphere.
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 [email protected]
on 5 May 2013 at 6:43
from pysphere.
[deleted comment]
from pysphere.
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 [email protected]
on 17 Jul 2013 at 3:39
Attachments:
from pysphere.
When will this be implemented?
Original comment by [email protected]
on 26 Dec 2013 at 10:50
from pysphere.
bump
Original comment by [email protected]
on 9 Oct 2014 at 6:08
from pysphere.
guys check out pyvmomi, official vmware python sdk
Original comment by [email protected]
on 9 Oct 2014 at 9:16
from pysphere.
Related Issues (20)
- currentBalance and targetBalance Key/Values for ClusterComputeResource
- [patch] add support for guest_dists
- Can't get MAC address for VMware ESXi 5.0
- Error using guest send_file function in IPv6 enviroment - address mangled HOT 1
- VixVM_WaitForToolsInGuest HOT 2
- No response to a get_hosts request when targeting vCenter 5.5, but an ESXi 5.5 host works fine.
- pysphere.resources.vi_exception.VIException: [Task Error]: The object has already been deleted or has not been completely created HOT 2
- send_file() times out
- Add description field to vi_virtual_machine properties
- [patch] support for custom HTTP transports
- [patch] Add snapshots renaming methods to VIVirtualMachine
- VIVirtualMache.delete_snapshot_by_path does not return VITask
- new-NetworkAdapter
- Is it possible to deply the ova file in the ESXI using the pysphere ?
- Error calling vm.is_powered_on() "AttributeError: 'DynamicData_Holder' object has no attribute '_propSet'" HOT 1
- Intermittent VIException: [Object Not Found] - probably because underlying sessions expired HOT 1
- No datastoreFolder and networkFolder in _retrieve_properties_traversal method
- Create a linked clone
- VimService_services_types.py is slow to import
- Attempting to get a list of alerts yields [InvalidPropertyFault]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysphere.