public interface Active extends Service, ActiveTypes
Active
interface provides methods to get information related to the
active vCenter High Availability (VCHA) node. This interface was added in
vSphere API 6.7 U1.ActiveTypes.Info
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.
|
ActiveTypes.Info get(CredentialsSpec vcSpec, java.lang.Boolean partial)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server. null
, then return all the information.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.ActiveTypes.Info get(CredentialsSpec vcSpec, java.lang.Boolean partial, 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.
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.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.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.void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ActiveTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation 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.vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.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.void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ActiveTypes.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.
Operation 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.vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.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.