VMTypes.CreateSpec, VMTypes.FilterSpec, VMTypes.Info, VMTypes.PlacementSpec, VMTypes.StoragePolicySpec, VMTypes.Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(VMTypes.CreateSpec spec)
Creates a virtual machine.
|
void |
create(VMTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a virtual machine.
|
void |
create(VMTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a virtual machine.
|
java.lang.String |
create(VMTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a virtual machine.
|
void |
delete(java.lang.String vm)
Deletes a virtual machine.
|
void |
delete(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a virtual machine.
|
void |
delete(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a virtual machine.
|
void |
delete(java.lang.String vm,
InvocationConfig invocationConfig)
Deletes a virtual machine.
|
VMTypes.Info |
get(java.lang.String vm)
Returns information about a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<VMTypes.Info> asyncCallback)
Returns information about a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<VMTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a virtual machine.
|
VMTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns information about a virtual machine.
|
java.util.List<VMTypes.Summary> |
list(VMTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
virtual machines in vCenter matching the
VMTypes.FilterSpec . |
void |
list(VMTypes.FilterSpec filter,
AsyncCallback<java.util.List<VMTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
virtual machines in vCenter matching the
VMTypes.FilterSpec . |
void |
list(VMTypes.FilterSpec filter,
AsyncCallback<java.util.List<VMTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
virtual machines in vCenter matching the
VMTypes.FilterSpec . |
java.util.List<VMTypes.Summary> |
list(VMTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
virtual machines in vCenter matching the
VMTypes.FilterSpec . |
java.lang.String create(VMTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Virtual machine specification.VirtualMachine
.AlreadyExists
- if a virtual machine with the specified name already exists.Error
- if the system reports an error while responding to the request.InvalidArgument
- if any of the specified parameters are invalid.NotFound
- if any of the resources specified in spec could not be foundResourceInaccessible
- if a specified resource (eg. host) is not accessible.ResourceInUse
- if any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a
storage address conflict.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.UnableToAllocateResource
- if any of the resources needed to create the virtual machine could not be
allocated.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unsupported
- if getGuestOS()
is not supported for the requested virtual hardware
version and spec includes null
properties that default to guest-specific
values.java.lang.String create(VMTypes.CreateSpec 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
- Virtual machine specification.invocationConfig
- Configuration for the method invocation.VirtualMachine
.AlreadyExists
- if a virtual machine with the specified name already exists.Error
- if the system reports an error while responding to the request.InvalidArgument
- if any of the specified parameters are invalid.NotFound
- if any of the resources specified in spec could not be foundResourceInaccessible
- if a specified resource (eg. host) is not accessible.ResourceInUse
- if any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a
storage address conflict.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.UnableToAllocateResource
- if any of the resources needed to create the virtual machine could not be
allocated.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user doesn't have the required privileges.Unsupported
- if getGuestOS()
is not supported for the requested virtual hardware
version and spec includes null
properties that default to guest-specific
values.void create(VMTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
ID of newly-created virtual machine.
The return value will be an identifier for the resource type: VirtualMachine
.
Operation Errors:
AlreadyExists
- if a virtual machine with the specified name already exists.
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if any of the resources specified in spec could not be found
ResourceInaccessible
- if a specified resource (eg. host) is not accessible.
ResourceInUse
- if any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a
storage address conflict.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
UnableToAllocateResource
- if any of the resources needed to create the virtual machine could not be
allocated.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unsupported
- if getGuestOS()
is not supported for the requested virtual hardware
version and spec includes null
properties that default to guest-specific
values.
spec
- Virtual machine specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(VMTypes.CreateSpec spec, AsyncCallback<java.lang.String> 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:
ID of newly-created virtual machine.
The return value will be an identifier for the resource type: VirtualMachine
.
Operation Errors:
AlreadyExists
- if a virtual machine with the specified name already exists.
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if any of the resources specified in spec could not be found
ResourceInaccessible
- if a specified resource (eg. host) is not accessible.
ResourceInUse
- if any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a
storage address conflict.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
UnableToAllocateResource
- if any of the resources needed to create the virtual machine could not be
allocated.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unsupported
- if getGuestOS()
is not supported for the requested virtual hardware
version and spec includes null
properties that default to guest-specific
values.
spec
- Virtual machine specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.VMTypes.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 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.VMTypes.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 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.void get(java.lang.String vm, AsyncCallback<VMTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about 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 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.
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<VMTypes.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:
Information about 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 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.
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 delete(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.NotAllowedInCurrentState
- if the virtual machine is running (powered on).NotFound
- if the virtual machine is not found.ResourceBusy
- if the virtual machine is busy performing another operation.ResourceInaccessible
- if the virtual machine's configuration 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.void delete(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.NotAllowedInCurrentState
- if the virtual machine is running (powered on).NotFound
- if the virtual machine is not found.ResourceBusy
- if the virtual machine is busy performing another operation.ResourceInaccessible
- if the virtual machine's configuration 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.void delete(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.
NotAllowedInCurrentState
- if the virtual machine is running (powered on).
NotFound
- if the virtual machine is not found.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration 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.
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 delete(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.
NotAllowedInCurrentState
- if the virtual machine is running (powered on).
NotFound
- if the virtual machine is not found.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration 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.
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.java.util.List<VMTypes.Summary> list(VMTypes.FilterSpec filter)
VMTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching virtual machines for which information should be
returned.
If null
, the behavior is equivalent to a VMTypes.FilterSpec
with all properties null
which
means all virtual machines match the filter.VMTypes.FilterSpec
.InvalidArgument
- if the VMTypes.FilterSpec.getPowerStates()
property
contains a value that is not supported by the server.UnableToAllocateResource
- if more than 1000 virtual machines match the VMTypes.FilterSpec
.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.java.util.List<VMTypes.Summary> list(VMTypes.FilterSpec filter, InvocationConfig invocationConfig)
VMTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
filter
- Specification of matching virtual machines for which information should be
returned.
If null
, the behavior is equivalent to a VMTypes.FilterSpec
with all properties null
which
means all virtual machines match the filter.invocationConfig
- Configuration for the method invocation.VMTypes.FilterSpec
.InvalidArgument
- if the VMTypes.FilterSpec.getPowerStates()
property
contains a value that is not supported by the server.UnableToAllocateResource
- if more than 1000 virtual machines match the VMTypes.FilterSpec
.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.void list(VMTypes.FilterSpec filter, AsyncCallback<java.util.List<VMTypes.Summary>> asyncCallback)
VMTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Commonly used information about the virtual machines matching the VMTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the VMTypes.FilterSpec.getPowerStates()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 virtual machines match the VMTypes.FilterSpec
.
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.
filter
- Specification of matching virtual machines for which information should be
returned.
If null
, the behavior is equivalent to a VMTypes.FilterSpec
with all properties null
which
means all virtual machines match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(VMTypes.FilterSpec filter, AsyncCallback<java.util.List<VMTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
VMTypes.FilterSpec
.
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:
Commonly used information about the virtual machines matching the VMTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the VMTypes.FilterSpec.getPowerStates()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 virtual machines match the VMTypes.FilterSpec
.
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.
filter
- Specification of matching virtual machines for which information should be
returned.
If null
, the behavior is equivalent to a VMTypes.FilterSpec
with all properties null
which
means all virtual machines match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.