@Sample(name="get-current-time",
description="This sample gets the current time of the vSphere Server")
public class GetCurrentTime
extends ConnectedVimServiceBase
GetCurrentTime This sample gets the current time of the vSphere 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.GetCurrentTime --url [webservicesurl] --username [Username] --password [password]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
GetCurrentTime() |
| Modifier and Type | Method and Description |
|---|---|
void |
getCurrentTime()
This method retrieves the current time from the server and prints it.
|
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection