Class Connect


  • @Sample(name="connect",
            description="This sample connects to an ESX server or to vCenter server.")
    public class Connect
    extends ConnectedVimServiceBase
     Connect
    
     This sample simply connects to an ESX server or to vCenter server
    
     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.Connect --url [webserviceurl]
     --username [username] --password [password]
     
    See Also:
    ConnectedVimServiceBase, BasicConnection, SsoConnection
    • Constructor Detail

      • Connect

        public Connect()
    • Method Detail

      • action

        @Action
        public void action()
        For details on how to form different types of connections to various kinds of vSphere web service agents, see the classes under the package com.vmware.connection,
        See Also:
        BasicConnection, SsoConnection