public interface ConfigCurrent extends Service, ConfigCurrentTypes
ConfigCurrent
interface provides methods to get the current state of
the vCenter. Warning: This interface is available as Technology Preview.
These are early access APIs provided to test, automate and provide feedback on
the feature. Since this can change based on feedback, VMware does not guarantee
backwards compatibility and recommends against using them in production
environments. Some Technology Preview APIs might only be applicable to specific
environments._VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
DesiredState |
get()
Returns the current state of the vCenter.
|
void |
get(AsyncCallback<DesiredState> asyncCallback)
Returns the current state of the vCenter.
|
void |
get(AsyncCallback<DesiredState> asyncCallback,
InvocationConfig invocationConfig)
Returns the current state of the vCenter.
|
DesiredState |
get(InvocationConfig invocationConfig)
Returns the current state of the vCenter.
|
DesiredState get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.ServiceUnavailable
- If the service is not available.Unauthenticated
- If the caller is not authenticated.DesiredState get(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.ServiceUnavailable
- If the service is not available.Unauthenticated
- If the caller is not authenticated.void get(AsyncCallback<DesiredState> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<DesiredState> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.