public class ActiveStub extends com.vmware.vapi.internal.bindings.Stub implements Active
Active
API service.
WARNING: Internal class, subject to change in future versions.
ActiveTypes.Info
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ActiveStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ActiveStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ActiveTypes.Info |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial)
Retrieves information about the active node of a VCHA cluster.
|
void |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
AsyncCallback<ActiveTypes.Info> asyncCallback)
Retrieves information about the active node of a VCHA cluster.
|
void |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
AsyncCallback<ActiveTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the active node of a VCHA cluster.
|
ActiveTypes.Info |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
InvocationConfig invocationConfig)
Retrieves information about the active node of a VCHA cluster.
|
public ActiveStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ActiveStub(ApiProvider apiProvider, StubConfigurationBase config)
public ActiveTypes.Info get(CredentialsSpec vcSpec, java.lang.Boolean partial)
Active
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Active
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter Server instance is assumed to be either
self-managed or else in enhanced linked mode and managed by a linked vCenter
Server instance.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server. null
, then return all the information.public ActiveTypes.Info get(CredentialsSpec vcSpec, java.lang.Boolean partial, InvocationConfig invocationConfig)
Active
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface Active
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter Server instance is assumed to be either
self-managed or else in enhanced linked mode and managed by a linked vCenter
Server instance.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server. null
, then return all the information.invocationConfig
- Configuration for the method invocation.public void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ActiveTypes.Info> asyncCallback)
Active
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Info Information about the VCHA network and placement of the active node.
Operation Errors:
InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.
Unauthorized
- If the user has insufficient privilege to perform the operation.
partial
is false or unset, then the operation execution requires the
Global.VCServer privilege.partial
is true, then the
operation execution requires the System.Read privilege.UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be validated.
Error
will be a class that contains all the properties defined in CertificateInfo
.InvalidElementConfiguration
- If the active node is on more than one datastore.NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.Error
- If the management interface IP address assignment is not static.Error
- If any other error occurs.get
in interface Active
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter Server instance is assumed to be either
self-managed or else in enhanced linked mode and managed by a linked vCenter
Server instance.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server. null
, then return all the information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ActiveTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Active
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 Information about the VCHA network and placement of the active node.
Operation Errors:
InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.
Unauthorized
- If the user has insufficient privilege to perform the operation.
partial
is false or unset, then the operation execution requires the
Global.VCServer privilege.partial
is true, then the
operation execution requires the System.Read privilege.UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be validated.
Error
will be a class that contains all the properties defined in CertificateInfo
.InvalidElementConfiguration
- If the active node is on more than one datastore.NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.Error
- If the management interface IP address assignment is not static.Error
- If any other error occurs.get
in interface Active
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter Server instance is assumed to be either
self-managed or else in enhanced linked mode and managed by a linked vCenter
Server instance.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server. null
, then return all the information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.