Class 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 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]
     
    • Constructor Detail

      • GetVMFiles

        public GetVMFiles()
    • 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.RuntimeFaultFaultMsg
        java.io.IOException
        com.vmware.vim25.InvalidPropertyFaultMsg