public interface Cluster extends Service, ClusterTypes
Cluster
interface provides methods to deploy and undeploy a vCenter
High Availability (VCHA) cluster, failover from the active VCHA node to the
passive VCHA node, and retrieve the status of the VCHA cluster. This interface
was added in vSphere API 6.7.1.ClusterTypes._VAPI_OPERATIONS, ClusterTypes.ActiveSpec, ClusterTypes.ClusterMode, ClusterTypes.ClusterState, ClusterTypes.ConfigState, ClusterTypes.DeploySpec, ClusterTypes.ErrorCondition, ClusterTypes.Info, ClusterTypes.IpFamily, ClusterTypes.IpInfo, ClusterTypes.Ipv4Info, ClusterTypes.Ipv6Info, ClusterTypes.NodeInfo, ClusterTypes.NodeRole, ClusterTypes.NodeRuntimeInfo, ClusterTypes.NodeState, ClusterTypes.NodeVmInfo, ClusterTypes.PassiveSpec, ClusterTypes.Type, ClusterTypes.UndeploySpec, ClusterTypes.VmInfo, ClusterTypes.WitnessInfo, ClusterTypes.WitnessSpec
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
java.lang.String |
deploy_Task(ClusterTypes.DeploySpec spec)
Prepares, clones, and configures a VCHA cluster.
|
void |
deploy_Task(ClusterTypes.DeploySpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Prepares, clones, and configures a VCHA cluster.
|
void |
deploy_Task(ClusterTypes.DeploySpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Prepares, clones, and configures a VCHA cluster.
|
java.lang.String |
deploy_Task(ClusterTypes.DeploySpec spec,
InvocationConfig invocationConfig)
Prepares, clones, and configures a VCHA cluster.
|
java.lang.String |
failover_Task(boolean planned)
Initiates failover from the active vCenter node to the passive node.
|
void |
failover_Task(boolean planned,
AsyncCallback<java.lang.String> asyncCallback)
Initiates failover from the active vCenter node to the passive node.
|
void |
failover_Task(boolean planned,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Initiates failover from the active vCenter node to the passive node.
|
java.lang.String |
failover_Task(boolean planned,
InvocationConfig invocationConfig)
Initiates failover from the active vCenter node to the passive node.
|
ClusterTypes.Info |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial)
Retrieves the status of a VCHA cluster.
|
void |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
AsyncCallback<ClusterTypes.Info> asyncCallback)
Retrieves the status of a VCHA cluster.
|
void |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
AsyncCallback<ClusterTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the status of a VCHA cluster.
|
ClusterTypes.Info |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
InvocationConfig invocationConfig)
Retrieves the status of a VCHA cluster.
|
java.lang.String |
undeploy_Task(ClusterTypes.UndeploySpec spec)
Destroys the VCHA cluster and removes all VCHA specific information from the
VCVA appliance.
|
void |
undeploy_Task(ClusterTypes.UndeploySpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Destroys the VCHA cluster and removes all VCHA specific information from the
VCVA appliance.
|
void |
undeploy_Task(ClusterTypes.UndeploySpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Destroys the VCHA cluster and removes all VCHA specific information from the
VCVA appliance.
|
java.lang.String |
undeploy_Task(ClusterTypes.UndeploySpec spec,
InvocationConfig invocationConfig)
Destroys the VCHA cluster and removes all VCHA specific information from the
VCVA appliance.
|
java.lang.String deploy_Task(ClusterTypes.DeploySpec spec)
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
spec
- Contains the deploy specification for all three nodes of a VCHA cluster.InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer 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
.Error
- If any other error occurs.java.lang.String deploy_Task(ClusterTypes.DeploySpec spec, InvocationConfig invocationConfig)
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.
spec
- Contains the deploy specification for all three nodes of a VCHA cluster.invocationConfig
- Configuration for the method invocation.InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer 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
.Error
- If any other error occurs.void deploy_Task(ClusterTypes.DeploySpec spec, AsyncCallback<java.lang.String> asyncCallback)
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:
InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.
The value of the data property of Error
will be a class that contains all the
properties defined in CertificateInfo
.
Error
- If any other error occurs.
spec
- Contains the deploy specification for all three nodes of a VCHA cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void deploy_Task(ClusterTypes.DeploySpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
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:
InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.
The value of the data property of Error
will be a class that contains all the
properties defined in CertificateInfo
.
Error
- If any other error occurs.
spec
- Contains the deploy specification for all three nodes of a VCHA cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String failover_Task(boolean planned)
For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover.
For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss.
A failover is allowed only in the following cases:
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
planned
- If false, a failover is initiated immediately and may result in data loss.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 failover_Task(boolean planned, InvocationConfig invocationConfig)
For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover.
For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss.
A failover is allowed only in the following cases:
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.
planned
- If false, a failover is initiated immediately and may result in data loss.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 failover_Task(boolean planned, AsyncCallback<java.lang.String> asyncCallback)
For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover.
For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss.
A failover is allowed only in the following cases:
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.
planned
- If false, a failover is initiated immediately and may result in data loss.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void failover_Task(boolean planned, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover.
For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss.
A failover is allowed only in the following cases:
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.
planned
- If false, a failover is initiated immediately and may result in data loss.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.ClusterTypes.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 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.InvalidArgument
- If the credentials provided for authenticating 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
.Error
- If any other error occurs.ClusterTypes.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 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.InvalidArgument
- If the credentials provided for authenticating 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
.Error
- If any other error occurs.void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ClusterTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Info structure containing the VCHA configuration and health information.
Operation Errors:
InvalidArgument
- If the credentials provided for authenticating 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
.Error
- If any other error occurs.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.void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ClusterTypes.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 VCHA configuration and health information.
Operation Errors:
InvalidArgument
- If the credentials provided for authenticating 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
.Error
- If any other error occurs.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.java.lang.String undeploy_Task(ClusterTypes.UndeploySpec spec)
If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
. 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.
spec
- Contains the undeploy specification for a VCHA cluster.InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.NotFound
- If the passive virtual machine is not managed by the specified vCenter server.NotFound
- If the witness virtual machine is not managed by the specified vCenter server.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer 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
.Error
- If any other error occurs.java.lang.String undeploy_Task(ClusterTypes.UndeploySpec spec, InvocationConfig invocationConfig)
If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
. 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.
spec
- Contains the undeploy specification for a VCHA cluster.invocationConfig
- Configuration for the method invocation.InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.NotFound
- If the passive virtual machine is not managed by the specified vCenter server.NotFound
- If the witness virtual machine is not managed by the specified vCenter server.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer 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
.Error
- If any other error occurs.void undeploy_Task(ClusterTypes.UndeploySpec spec, AsyncCallback<java.lang.String> asyncCallback)
If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
. 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:
InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.
NotFound
- If the passive virtual machine is not managed by the specified vCenter server.
NotFound
- If the witness virtual machine is not managed by the specified vCenter server.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.
The value of the data property of Error
will be a class that contains all the
properties defined in CertificateInfo
.
Error
- If any other error occurs.
spec
- Contains the undeploy specification for a VCHA cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void undeploy_Task(ClusterTypes.UndeploySpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
. 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:
InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.
NotFound
- If the passive virtual machine is not managed by the specified vCenter server.
NotFound
- If the witness virtual machine is not managed by the specified vCenter server.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.
The value of the data property of Error
will be a class that contains all the
properties defined in CertificateInfo
.
Error
- If any other error occurs.
spec
- Contains the undeploy specification for a VCHA cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.