Package com.vmware.httpfileaccess
Class GetVMFiles
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.httpfileaccess.GetVMFiles
-
@Sample(name="get-vm-files", description="gets all the config files, snapshots files, logs files, virtual disk files to the local system.") public class GetVMFiles extends ConnectedVimServiceBaseGetVMFiles This sample gets all the config files, snapshots files, logs files, virtual disk files to the local system. Use with PutVMFiles. 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 localpath [required] : localpath to copy files into Command Line: To get the virtual machine files on local disk run.bat com.vmware.httpfileaccess.GetVMFiles --url [webserviceurl] --username [username] --password [password] --vmname [vmname] --localpath [localpath]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description GetVMFiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetLocalPath(java.lang.String localPath)voidsetVmName(java.lang.String vmName)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setVmName
@Option(name="vmname", description="Name of the virtual machine") public void setVmName(java.lang.String vmName)
-
setLocalPath
@Option(name="localpath", description="localpath to copy files into") public void setLocalPath(java.lang.String localPath)
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, java.io.IOException, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgjava.io.IOExceptioncom.vmware.vim25.InvalidPropertyFaultMsg
-
-