public interface Power extends Service, PowerTypes
Power
interface provides methods for managing the power state of a
virtual machine.PowerTypes.Info, PowerTypes.State
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
PowerTypes.Info |
get(java.lang.String vm)
Returns the power state information of a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<PowerTypes.Info> asyncCallback)
Returns the power state information of a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<PowerTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the power state information of a virtual machine.
|
PowerTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns the power state information of a virtual machine.
|
void |
reset(java.lang.String vm)
Resets a powered-on virtual machine.
|
void |
reset(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Resets a powered-on virtual machine.
|
void |
reset(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Resets a powered-on virtual machine.
|
void |
reset(java.lang.String vm,
InvocationConfig invocationConfig)
Resets a powered-on virtual machine.
|
void |
start(java.lang.String vm)
Powers on a powered-off or suspended virtual machine.
|
void |
start(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Powers on a powered-off or suspended virtual machine.
|
void |
start(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Powers on a powered-off or suspended virtual machine.
|
void |
start(java.lang.String vm,
InvocationConfig invocationConfig)
Powers on a powered-off or suspended virtual machine.
|
void |
stop(java.lang.String vm)
Powers off a powered-on or suspended virtual machine.
|
void |
stop(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Powers off a powered-on or suspended virtual machine.
|
void |
stop(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Powers off a powered-on or suspended virtual machine.
|
void |
stop(java.lang.String vm,
InvocationConfig invocationConfig)
Powers off a powered-on or suspended virtual machine.
|
void |
suspend(java.lang.String vm)
Suspends a powered-on virtual machine.
|
void |
suspend(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Suspends a powered-on virtual machine.
|
void |
suspend(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Suspends a powered-on virtual machine.
|
void |
suspend(java.lang.String vm,
InvocationConfig invocationConfig)
Suspends a powered-on virtual machine.
|
PowerTypes.Info get(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.ResourceInaccessible
- if the virtual machine's configuration or execution state cannot be accessed.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
System.Read
. PowerTypes.Info get(java.lang.String vm, 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.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.ResourceInaccessible
- if the virtual machine's configuration or execution state cannot be accessed.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
System.Read
. void get(java.lang.String vm, AsyncCallback<PowerTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Power state information for the specified virtual machine.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
ResourceInaccessible
- if the virtual machine's configuration or execution state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
System.Read
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String vm, AsyncCallback<PowerTypes.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:
Power state information for the specified virtual machine.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
ResourceInaccessible
- if the virtual machine's configuration or execution state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
System.Read
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void start(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.AlreadyInDesiredState
- if the virtual machine is already powered on.Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).UnableToAllocateResource
- if resources cannot be allocated for the virtual machine (e.g. physical resource
allocation policy cannot be satisfied, insufficient licenses are available to
run the virtual machine).ResourceInaccessible
- if resources required by the virtual machine are not accessible (e.g. virtual
machine configuration files or virtual disks are on inaccessible storage, no
hosts are available to run the virtual machine).ResourceInUse
- if resources required by the virtual machine are in use (e.g. virtual machine
configuration files or virtual disks are locked, host containing the virtual
machine is an HA failover host).ResourceBusy
- if the virtual machine is performing another operation.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOn
. void start(java.lang.String vm, 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.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.AlreadyInDesiredState
- if the virtual machine is already powered on.Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).UnableToAllocateResource
- if resources cannot be allocated for the virtual machine (e.g. physical resource
allocation policy cannot be satisfied, insufficient licenses are available to
run the virtual machine).ResourceInaccessible
- if resources required by the virtual machine are not accessible (e.g. virtual
machine configuration files or virtual disks are on inaccessible storage, no
hosts are available to run the virtual machine).ResourceInUse
- if resources required by the virtual machine are in use (e.g. virtual machine
configuration files or virtual disks are locked, host containing the virtual
machine is an HA failover host).ResourceBusy
- if the virtual machine is performing another operation.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOn
. void start(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
AlreadyInDesiredState
- if the virtual machine is already powered on.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
UnableToAllocateResource
- if resources cannot be allocated for the virtual machine (e.g. physical resource
allocation policy cannot be satisfied, insufficient licenses are available to
run the virtual machine).
ResourceInaccessible
- if resources required by the virtual machine are not accessible (e.g. virtual
machine configuration files or virtual disks are on inaccessible storage, no
hosts are available to run the virtual machine).
ResourceInUse
- if resources required by the virtual machine are in use (e.g. virtual machine
configuration files or virtual disks are locked, host containing the virtual
machine is an HA failover host).
ResourceBusy
- if the virtual machine is performing another operation.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOn
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void start(java.lang.String vm, 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:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
AlreadyInDesiredState
- if the virtual machine is already powered on.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
UnableToAllocateResource
- if resources cannot be allocated for the virtual machine (e.g. physical resource
allocation policy cannot be satisfied, insufficient licenses are available to
run the virtual machine).
ResourceInaccessible
- if resources required by the virtual machine are not accessible (e.g. virtual
machine configuration files or virtual disks are on inaccessible storage, no
hosts are available to run the virtual machine).
ResourceInUse
- if resources required by the virtual machine are in use (e.g. virtual machine
configuration files or virtual disks are locked, host containing the virtual
machine is an HA failover host).
ResourceBusy
- if the virtual machine is performing another operation.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOn
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void stop(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.AlreadyInDesiredState
- if the virtual machine is already powered off.ResourceBusy
- if the virtual machine is performing another operation.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOff
. void stop(java.lang.String vm, 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.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.AlreadyInDesiredState
- if the virtual machine is already powered off.ResourceBusy
- if the virtual machine is performing another operation.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOff
. void stop(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
AlreadyInDesiredState
- if the virtual machine is already powered off.
ResourceBusy
- if the virtual machine is performing another operation.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOff
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void stop(java.lang.String vm, 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:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
AlreadyInDesiredState
- if the virtual machine is already powered off.
ResourceBusy
- if the virtual machine is performing another operation.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.PowerOff
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void suspend(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.AlreadyInDesiredState
- if the virtual machine is already suspended.NotAllowedInCurrentState
- if the virtual machine is powered off.ResourceBusy
- if the virtual machine is performing another operation.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Suspend
. void suspend(java.lang.String vm, 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.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.AlreadyInDesiredState
- if the virtual machine is already suspended.NotAllowedInCurrentState
- if the virtual machine is powered off.ResourceBusy
- if the virtual machine is performing another operation.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Suspend
. void suspend(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
AlreadyInDesiredState
- if the virtual machine is already suspended.
NotAllowedInCurrentState
- if the virtual machine is powered off.
ResourceBusy
- if the virtual machine is performing another operation.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Suspend
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void suspend(java.lang.String vm, 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:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
AlreadyInDesiredState
- if the virtual machine is already suspended.
NotAllowedInCurrentState
- if the virtual machine is powered off.
ResourceBusy
- if the virtual machine is performing another operation.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Suspend
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void reset(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.NotAllowedInCurrentState
- if the virtual machine is powered off or suspended.ResourceBusy
- if the virtual machine is performing another operationServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Reset
. void reset(java.lang.String vm, 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.
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.NotAllowedInCurrentState
- if the virtual machine is powered off or suspended.ResourceBusy
- if the virtual machine is performing another operationServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unauthorized
- if you do not have all of the privileges described as follows: VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Reset
. void reset(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is powered off or suspended.
ResourceBusy
- if the virtual machine is performing another operation
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Reset
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void reset(java.lang.String vm, 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:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is powered off or suspended.
ResourceBusy
- if the virtual machine is performing another operation
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
VirtualMachine
referenced by the parameter vm
requires
VirtualMachine.Interact.Reset
. vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.