Comments (5)
Would definitely be nice to have. In working on this, I'm sure we can also add some nice helpers to govmomi itself.
from govmomi.
Any chance to have a snapshot API?
Actually my usecase is even simpler than creating and deleting snapshots: I need to create linked VM clones, and just need to pass a reference to VM.snapshot.currentSnapshot
object. Any suggestions how can it be done?
from govmomi.
In general, all the APIs are available in govmomi as they are generated from the wsdl. For example, looking at the docs here:
http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/vim.VirtualMachine.html#createSnapshot
git grep CreateSnapshot_Task and you'll see generated methods and types under vim25/
We have been adding simple wrappers for such methods, for example have a look at the govmomi/virtual_machine.go Power* methods. We have a generator for these wrappers in the works, but in the meantime have also been creating some of the wrappers by hand.
from govmomi.
Thank you for the explanation, I've made this work.
from govmomi.
from govmomi.
Related Issues (20)
- [BUG] vcsim: #2911 mandated to pass the new disk size in Bytes and KB. If either of value is 0, ReconfigVM_Task is throwing *types.InvalidDeviceOperation HOT 1
- Ability to create file-share volumes using vcsim HOT 2
- [BUG] govc import.ova not working if ESXI hostnames don't don't resolve HOT 2
- [BUG] Export to ovf makes a bad ovf file HOT 1
- [BUG] Invalid operation for device '0' in 0.37.2 HOT 2
- [BUG] Customize option failing for Windows VM due to missing Userdata HOT 1
- [BUG] DistributedVirtualSwitchManager:DVSManager does not implement: QueryDvsByUuid HOT 1
- vCenter : QueryPerf metrics support
- [BUG] ReadNextEvents method gets stuck HOT 9
- How to expand a block storage by methods.ExpandVmfsDatastore? HOT 1
- [BUG] VirtualAppList function can't handle nested Virtual Apps HOT 1
- [BUG] govc v0.37.2 command vm.disk.change always fail HOT 2
- [BUG] Permission Error with ContinueRetrievePropertiesEx in govc v0.37.0+ on vSphere 8.x HOT 5
- [BUG] govc.exe find . -type m -runtime.powerState poweredOn fails on Windows HOT 4
- Virtual Watchdog timer support HOT 2
- [BUG] Can't resize a VM's disk HOT 1
- Add support for "High with Hyperthreading" option for latency_sensitivity HOT 2
- [BUG] PropertyCollector not populating ScsiLun.AlternateName data correctly/fully HOT 5
- [BUG] govc 0.37.3 datastore.create cannot add nfs41 storage HOT 2
- Add vSAN data migration support for host.maintenance.enter HOT 1
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 govmomi.