Class TaskList


  • @Sample(name="task-list",
            description="This sample prints out a list of tasks if any are running")
    public class TaskList
    extends ConnectedVimServiceBase
     TaskList
    
     This sample prints out a list of tasks if any are running
     The sample display the tasks in the following format:
     Operation:
     Name:
     Type:
     State:
     Error:
    
     Parameters:
     url          [required] : url of the web service
     username     [required] : username for the authentication
     password     [required] : password for the authentication
    
     Command Line:
     run.bat com.vmware.general.TaskList --url [webserviceurl]
     --username [username] --password [password]
     
    • Constructor Detail

      • TaskList

        public TaskList()
    • Method Detail

      • list

        @Action
        public java.util.List<com.vmware.vim25.ObjectContent> list()
                                                            throws com.vmware.vim25.RuntimeFaultFaultMsg,
                                                                   com.vmware.vim25.InvalidPropertyFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg