Class Browser


  • @Sample(name="browser",
            description="This sample prints managed entity, its type, reference value, property name, Property Value, Inner Object Type, its Inner Reference Value and inner property value")
    public class Browser
    extends VCenterSampleBase
     Browser
    
     This sample prints managed entity, its type, reference value,
     property name, Property Value, Inner Object Type, its Inner Reference Value
     and inner property value
    
     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.Browser --url [webserviceurl]
     --username [username] --password [password]
     
    See Also:
    ConnectedVimServiceBase
    • Constructor Detail

      • Browser

        public Browser()
    • Method Detail

      • printInventory

        @Action
        public void printInventory()
                            throws com.vmware.vim25.InvalidPropertyFaultMsg,
                                   com.vmware.vim25.RuntimeFaultFaultMsg
        The main action for this sample.
        Throws:
        com.vmware.vim25.InvalidPropertyFaultMsg
        com.vmware.vim25.RuntimeFaultFaultMsg
      • inventory

        public java.util.Map<java.lang.String,​com.vmware.vim25.ManagedObjectReference> inventory()
                                                                                                throws com.vmware.vim25.InvalidPropertyFaultMsg,
                                                                                                       com.vmware.vim25.RuntimeFaultFaultMsg
        Throws:
        com.vmware.vim25.InvalidPropertyFaultMsg
        com.vmware.vim25.RuntimeFaultFaultMsg