ModeTypes._VAPI_OPERATIONS, ModeTypes.ClusterMode, ModeTypes.Info
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
ModeTypes.Info |
get()
Retrieves the current mode of a VCHA cluster.
|
void |
get(AsyncCallback<ModeTypes.Info> asyncCallback)
Retrieves the current mode of a VCHA cluster.
|
void |
get(AsyncCallback<ModeTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the current mode of a VCHA cluster.
|
ModeTypes.Info |
get(InvocationConfig invocationConfig)
Retrieves the current mode of a VCHA cluster.
|
java.lang.String |
set_Task(ModeTypes.ClusterMode mode)
Manipulates the mode of a VCHA Cluster.
|
void |
set_Task(ModeTypes.ClusterMode mode,
AsyncCallback<java.lang.String> asyncCallback)
Manipulates the mode of a VCHA Cluster.
|
void |
set_Task(ModeTypes.ClusterMode mode,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Manipulates the mode of a VCHA Cluster.
|
java.lang.String |
set_Task(ModeTypes.ClusterMode mode,
InvocationConfig invocationConfig)
Manipulates the mode of a VCHA Cluster.
|
ModeTypes.Info get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
NotAllowedInCurrentState
- If the VCHA cluster is not configured.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the System.Read privilege.Error
- If any other error occurs.ModeTypes.Info 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.NotAllowedInCurrentState
- If the VCHA cluster is not configured.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the System.Read privilege.Error
- If any other error occurs.void get(AsyncCallback<ModeTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Info structure containing the mode of the the VCHA cluster.
Operation Errors:
NotAllowedInCurrentState
- If the VCHA cluster is not configured.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the System.Read privilege.
Error
- If any other error occurs.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<ModeTypes.Info> 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.
Invocation Result:
Info structure containing the mode of the the VCHA cluster.
Operation Errors:
NotAllowedInCurrentState
- If the VCHA cluster is not configured.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the System.Read privilege.
Error
- If any other error occurs.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String set_Task(ModeTypes.ClusterMode mode)
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
mode
- Clustermode to change the VCHA cluster mode to.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.Error
- If any other error occurs.java.lang.String set_Task(ModeTypes.ClusterMode mode, InvocationConfig invocationConfig)
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
mode
- Clustermode to change the VCHA cluster mode to.invocationConfig
- Configuration for the method invocation.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.Error
- If any other error occurs.void set_Task(ModeTypes.ClusterMode mode, AsyncCallback<java.lang.String> asyncCallback)
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
mode
- Clustermode to change the VCHA cluster mode to.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set_Task(ModeTypes.ClusterMode mode, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
mode
- Clustermode to change the VCHA cluster mode to.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.