Package com.vmware.host
Class AcquireSessionInfo
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.host.AcquireSessionInfo
-
@Sample(name="acquire-session-info", description="This sample will acquire a session with VC or ESX and print a cim service ticket and related session information to a file") public class AcquireSessionInfo extends ConnectedVimServiceBaseAcquireSessionInfo This sample will acquire a session with VC or ESX and print a cim service ticket and related session information to a file Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication host [required] : Name of the host info [optional] : Type of info required only [cimticket] for now file [optional] : Full path of the file to save data to Command Line: run.bat com.vmware.general.Browser --url [webserviceurl] --username [username] --password [password] --host [hostname] --info [password] --file [path_to_file]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description AcquireSessionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetFilename(java.lang.String filename)voidsetHostname(java.lang.String hostname)voidsetInfo(java.lang.String info)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHostname
@Option(name="host", description="name of host") public void setHostname(java.lang.String hostname)
-
setInfo
@Option(name="info", required=false, description="Type of info required [cimticket]") public void setInfo(java.lang.String info)
-
setFilename
@Option(name="file", required=false, description="Full path of the file to save data to") public void setFilename(java.lang.String filename)
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, java.io.IOException, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgjava.io.IOExceptioncom.vmware.vim25.InvalidPropertyFaultMsg
-
-