Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features #66

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

New features #66

wants to merge 11 commits into from

Conversation

gentoo90
Copy link

I saw NOT LONGER MAINTAINING notice, but I'll live this here anyway to let people know.
I added these features in 2014 for my own needs, and I don't use VSphere now either.

from pysphere import VIServer
server = VIServer()
server.connect("esxi.domain.local", passthrough=True)
  • Able to rename VM snapshots (rename_current_snapshot, rename_named_snapshot, rename_snapshot_by_path methods of VIVirtualMachine) ([patch] Add snapshots renaming methods to VIVirtualMachine #56)
  • Able to register and unregister VM (add/remove existing vmx to inventory)
  • VIFileManager, manipulates files on datastores (list files, create folder, upload, download, move, copy, delete)
  • Added _create_filter, _wait_for_updates methods to VIServer
  • VIVirtualMachine.list_processes() can filter processes by PIDs.

gentoo90 and others added 11 commits December 15, 2015 15:02
* 'datastore' is now a part of 'path' parameter ('[datastore] /path/to/file.vmx')
* add 'delete_file' method
* 'upload'/'download' methods now use cookies of
main HTTP session for authentication
* some fixes and code cleaning
Using a from_cache=True setting for clusters, datacenters, and resource pools causes issues when using multiple vcenter hosts, or when using multiple standalone esxi hosts. I expect the performance impact to be minimal, but I don't have a large cluster to test this against.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants