com.vmware.vm
Class VMSnapshot

java.lang.Object
  extended by com.vmware.vm.VMSnapshot

public class VMSnapshot
extends java.lang.Object

 VMSnapshot
 
 This sample demonstrates VM snapshot operations
 
 Parameters:
 url            [required] : url of the web service.
 username       [required] : username for the authentication
 password       [required] : password for the authentication
 vmname         [required] : Name of the virtual machine
 operation      [required] : operation type - [list|create|remove|revert]
 snapshotname   [optional] : Name of the snapshot
 description    [optional] : description of the sanpshot
 removechild    [optional] : remove snapshot children - [1 | 0]
 
 Command Line:
 List VM snapshot names
 run.bat com.vmware.vm.VMSnapshot
 --url [webserviceurl] --username [username] --password  [password]
 --vmname [vmname] --operation list
 
 Create VM snapshot
 run.bat com.vmware.vm.VMSnapshot
 --url [webserviceurl] --username [username] --password  [password]
 --vmname [vmname] --operation create
 --description [Description of the snapshot]
 
 Revert VM snapshot
 run.bat com.vmware.vm.VMSnapshot
 --url [webserviceurl] --username [username] --password  [password]
 --vmname [vmname] --operation revert --description [Snapshot Description]
 
 Remove VM snapshot
 run.bat com.vmware.vm.VMSnapshot
 --url [webserviceurl] --username [username] --password  [password]
 --vmname [vmname] --operation remove --removechild 0
 


Constructor Summary
VMSnapshot()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMSnapshot

public VMSnapshot()
Method Detail

main

public static void main(java.lang.String[] args)