public interface Passive extends Service, PassiveTypes
Passive
interface provides methods to validate a passive's placement
configuration and redeploy the passive node in a vCenter High Availability
(VCHA) cluster. This interface was added in vSphere API 6.7.1.PassiveTypes._VAPI_OPERATIONS, PassiveTypes.CheckResult, PassiveTypes.CheckSpec, PassiveTypes.RedeploySpec
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
PassiveTypes.CheckResult |
check(PassiveTypes.CheckSpec spec)
Validates the specified passive node's placement configuration.
|
void |
check(PassiveTypes.CheckSpec spec,
AsyncCallback<PassiveTypes.CheckResult> asyncCallback)
Validates the specified passive node's placement configuration.
|
void |
check(PassiveTypes.CheckSpec spec,
AsyncCallback<PassiveTypes.CheckResult> asyncCallback,
InvocationConfig invocationConfig)
Validates the specified passive node's placement configuration.
|
PassiveTypes.CheckResult |
check(PassiveTypes.CheckSpec spec,
InvocationConfig invocationConfig)
Validates the specified passive node's placement configuration.
|
java.lang.String |
redeploy_Task(PassiveTypes.RedeploySpec spec)
Creates the passive node in a degraded cluster with node location information
and pre-existing VCHA cluster configuration from the active node.
|
void |
redeploy_Task(PassiveTypes.RedeploySpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates the passive node in a degraded cluster with node location information
and pre-existing VCHA cluster configuration from the active node.
|
void |
redeploy_Task(PassiveTypes.RedeploySpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates the passive node in a degraded cluster with node location information
and pre-existing VCHA cluster configuration from the active node.
|
java.lang.String |
redeploy_Task(PassiveTypes.RedeploySpec spec,
InvocationConfig invocationConfig)
Creates the passive node in a degraded cluster with node location information
and pre-existing VCHA cluster configuration from the active node.
|
PassiveTypes.CheckResult check(PassiveTypes.CheckSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Contains the passive node's placement specification.InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.InvalidArgument
- If the specified resource spec is deemed invalid for the clone operation.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
.NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.InvalidElementConfiguration
- If the active node is on more than one datastore.NotAllowedInCurrentState
- If the clone operation is not allowed in the current state of the system.Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.Error
- If any other error occurs.PassiveTypes.CheckResult check(PassiveTypes.CheckSpec spec, 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.
spec
- Contains the passive node's placement specification.invocationConfig
- Configuration for the method invocation.InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.InvalidArgument
- If the specified resource spec is deemed invalid for the clone operation.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
.NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.InvalidElementConfiguration
- If the active node is on more than one datastore.NotAllowedInCurrentState
- If the clone operation is not allowed in the current state of the system.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 check(PassiveTypes.CheckSpec spec, AsyncCallback<PassiveTypes.CheckResult> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
CheckResult structure containing errors and warnings.
Operation Errors:
InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.
InvalidArgument
- If the specified resource spec is deemed invalid for the clone operation.
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
.
NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.
InvalidElementConfiguration
- If the active node is on more than one datastore.
NotAllowedInCurrentState
- If the clone operation is not allowed in the current state of the system.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
spec
- Contains the passive node's placement specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void check(PassiveTypes.CheckSpec spec, AsyncCallback<PassiveTypes.CheckResult> 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:
CheckResult structure containing errors and warnings.
Operation Errors:
InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.
InvalidArgument
- If the specified resource spec is deemed invalid for the clone operation.
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
.
NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.
InvalidElementConfiguration
- If the active node is on more than one datastore.
NotAllowedInCurrentState
- If the clone operation is not allowed in the current state of the system.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
spec
- Contains the passive node's placement specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String redeploy_Task(PassiveTypes.RedeploySpec spec)
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
spec
- Contains the passive node's redeploy specification.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. 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 redeploy_Task(PassiveTypes.RedeploySpec 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 passive node's redeploy specification.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. 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 redeploy_Task(PassiveTypes.RedeploySpec 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 authentincating 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 passive node's redeploy specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void redeploy_Task(PassiveTypes.RedeploySpec 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 authentincating 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 passive node's redeploy specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.