public interface Upgrade extends Service, UpgradeTypes
Upgrade
interface provides methods to configure the upgrade of this
appliance from an existing vCenter appliance. This interface was added in
vSphere API 6.7.UpgradeTypes.PscSpec, UpgradeTypes.SourceApplianceSpec, UpgradeTypes.UpgradeSpec, UpgradeTypes.VcsaEmbeddedSpec
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the appliance upgrade that is in progress.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback)
Cancel the appliance upgrade that is in progress.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancel the appliance upgrade that is in progress.
|
void |
cancel(InvocationConfig invocationConfig)
Cancel the appliance upgrade that is in progress.
|
CheckInfo |
check(UpgradeTypes.UpgradeSpec spec)
Run sanity checks using the UpgradeSpec parameters passed.
|
void |
check(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<CheckInfo> asyncCallback)
Run sanity checks using the UpgradeSpec parameters passed.
|
void |
check(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<CheckInfo> asyncCallback,
InvocationConfig invocationConfig)
Run sanity checks using the UpgradeSpec parameters passed.
|
CheckInfo |
check(UpgradeTypes.UpgradeSpec spec,
InvocationConfig invocationConfig)
Run sanity checks using the UpgradeSpec parameters passed.
|
UpgradeTypes.UpgradeSpec |
get()
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
void |
get(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback)
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
void |
get(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback,
InvocationConfig invocationConfig)
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
UpgradeTypes.UpgradeSpec |
get(InvocationConfig invocationConfig)
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
void |
start(UpgradeTypes.UpgradeSpec spec)
Start the appliance installation.
|
void |
start(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Start the appliance installation.
|
void |
start(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Start the appliance installation.
|
void |
start(UpgradeTypes.UpgradeSpec spec,
InvocationConfig invocationConfig)
Start the appliance installation.
|
UpgradeTypes.UpgradeSpec get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Unauthenticated
- if the caller is not authenticated.NotAllowedInCurrentState
- if appliance is not in UPGRADE_PROGRESS state.UpgradeTypes.UpgradeSpec 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.Unauthenticated
- if the caller is not authenticated.NotAllowedInCurrentState
- if appliance is not in UPGRADE_PROGRESS state.void get(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
UpgradeSpec parameters being used to configure appliance upgrade.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if appliance is not in UPGRADE_PROGRESS state.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<UpgradeTypes.UpgradeSpec> 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:
UpgradeSpec parameters being used to configure appliance upgrade.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if appliance is not in UPGRADE_PROGRESS state.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.CheckInfo check(UpgradeTypes.UpgradeSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- UpgradeSpec parameters to run sanity check on.Unauthenticated
- if the caller is not authenticated.Unauthenticated
- if source credentials are not valid.Unauthenticated
- if source container credentials are not valid.InvalidArgument
- if passed arguments are invalid.NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.CheckInfo check(UpgradeTypes.UpgradeSpec 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
- UpgradeSpec parameters to run sanity check on.invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthenticated
- if source credentials are not valid.Unauthenticated
- if source container credentials are not valid.InvalidArgument
- if passed arguments are invalid.NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.void check(UpgradeTypes.UpgradeSpec spec, AsyncCallback<CheckInfo> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
CheckInfo containing the check results.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
spec
- UpgradeSpec parameters to run sanity check on.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void check(UpgradeTypes.UpgradeSpec spec, AsyncCallback<CheckInfo> 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:
CheckInfo containing the check results.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
spec
- UpgradeSpec parameters to run sanity check on.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void start(UpgradeTypes.UpgradeSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- UpgradeSpec parameters to configure the appliance upgrade.Unauthenticated
- if the caller is not authenticated.Unauthenticated
- if source credentials are not valid.Unauthenticated
- if source container credentials are not valid.InvalidArgument
- if passed arguments are invalid.NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.void start(UpgradeTypes.UpgradeSpec 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
- UpgradeSpec parameters to configure the appliance upgrade.invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthenticated
- if source credentials are not valid.Unauthenticated
- if source container credentials are not valid.InvalidArgument
- if passed arguments are invalid.NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.void start(UpgradeTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
spec
- UpgradeSpec parameters to configure the appliance upgrade.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void start(UpgradeTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> 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 Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
spec
- UpgradeSpec parameters to configure the appliance upgrade.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void cancel()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Unauthenticated
- if the caller is not authenticated.NotAllowedInCurrentState
- if the appliance is not in CONFIG_IN_PROGRESS state and if the operation is not
INSTALL.void cancel(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.Unauthenticated
- if the caller is not authenticated.NotAllowedInCurrentState
- if the appliance is not in CONFIG_IN_PROGRESS state and if the operation is not
INSTALL.void cancel(AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if the appliance is not in CONFIG_IN_PROGRESS state and if the operation is not
INSTALL.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void cancel(AsyncCallback<java.lang.Void> 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 Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if the appliance is not in CONFIG_IN_PROGRESS state and if the operation is not
INSTALL.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.