VMware

Create/Remove Snapshots

VERSION 2 Published

Created on: May 20, 2009 1:53 PM by navadavuluri - Last Modified:  Sep 10, 2009 8:30 AM by navadavuluri


* This class demonstrates how to run tasks.
* Specifically shows how to create / remove snapshots.
*
* Snapshot removal requires ManagedObjectReference to the VirtulaMachineSnapshot
* managed object. The client application needs to store that, if it requires to
* remove a specific snapshot. Since, this is just a sample to demo, the code
* exists to do that, but the user has to choose to remove after the creation.
* The sample removes all the snapshots when the managed object reference to
* the specific snapshot is not available.
*
*
* Usage: RunTask.exe
*
* host - URL of the Virtual Center Server host
* https:///sdk
* username - User name
* password - Password
* vmname - Virtual machine name
* snapshotOperation - One of create | removeall
* snapshotName - Requires a name for the snapshot if creating, otherwise the system chooses a name

Average User Rating
(0 ratings)




Comments

There are no comments on this document

 

Actions

Developer Social Media

Communities