Class OVFManagerExportVAPP


  • @Sample(name="ovf-manager-export-vapp",
            description="This sample demonstrates OVFManager.\nExports VMDK\'s and OVF Descriptor of all VM\'s in the vApps")
    public class OVFManagerExportVAPP
    extends ConnectedVimServiceBase
     OVFManagerExportVAPP
    
     This sample demonstrates OVFManager.
     Exports VMDK's and OVF Descriptor of all VM's in the vApps
    
     Parameters:
     username         [required]: username for the authentication
     password         [required]: password for the authentication
     host             [required]: Name of the host system
     vapp             [required]: Name of the vapp
     localpath        [required]: local System Folder path
    
     Command Line:
     run.bat com.vmware.httpfileaccess.OVFManagerExportVAPP
     --url [URLString] --username [username] --password [password]
     --host [Host name] --vapp [Vapp Name] --localpath [Local Path]
     
    • Constructor Detail

      • OVFManagerExportVAPP

        public OVFManagerExportVAPP()
    • Method Detail

      • setvApp

        @Option(name="vapp",
                description="Name of the vapp")
        public void setvApp​(java.lang.String vApp)
      • setLocalpath

        @Option(name="localpath",
                description="local System Folder path")
        public void setLocalpath​(java.lang.String localpath)
      • setHost

        @Option(name="host",
                description="Name of the host")
        public void setHost​(java.lang.String host)
      • run

        @Action
        public void run()
                 throws com.vmware.vim25.RuntimeFaultFaultMsg,
                        com.vmware.vim25.TaskInProgressFaultMsg,
                        com.vmware.vim25.VmConfigFaultFaultMsg,
                        java.io.IOException,
                        com.vmware.vim25.InvalidPropertyFaultMsg,
                        com.vmware.vim25.FileFaultFaultMsg,
                        com.vmware.vim25.ConcurrentAccessFaultMsg,
                        com.vmware.vim25.InvalidStateFaultMsg,
                        com.vmware.vim25.InvalidCollectorVersionFaultMsg,
                        com.vmware.vim25.InvalidPowerStateFaultMsg,
                        com.vmware.vim25.TimedoutFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.TaskInProgressFaultMsg
        com.vmware.vim25.VmConfigFaultFaultMsg
        java.io.IOException
        com.vmware.vim25.InvalidPropertyFaultMsg
        com.vmware.vim25.FileFaultFaultMsg
        com.vmware.vim25.ConcurrentAccessFaultMsg
        com.vmware.vim25.InvalidStateFaultMsg
        com.vmware.vim25.InvalidCollectorVersionFaultMsg
        com.vmware.vim25.InvalidPowerStateFaultMsg
        com.vmware.vim25.TimedoutFaultMsg