@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 ConnectedVimServiceBase
GetVMFiles 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]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
GetVMFiles() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setLocalPath(java.lang.String localPath) |
void |
setVmName(java.lang.String vmName) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmname",
description="Name of the virtual machine")
public void setVmName(java.lang.String vmName)
@Option(name="localpath",
description="localpath to copy files into")
public void setLocalPath(java.lang.String localPath)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
java.io.IOException,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgjava.io.IOExceptioncom.vmware.vim25.InvalidPropertyFaultMsg