public interface ResourcePool extends Service, ResourcePoolTypes
This interface does not include virtual appliances in the inventory of resource pools even though part of the behavior of a virtual appliance is to act like a resource pool.
ResourcePoolTypes.CreateSpec, ResourcePoolTypes.FilterSpec, ResourcePoolTypes.Info, ResourcePoolTypes.ResourceAllocationCreateSpec, ResourcePoolTypes.ResourceAllocationInfo, ResourcePoolTypes.ResourceAllocationUpdateSpec, ResourcePoolTypes.SharesInfo, ResourcePoolTypes.Summary, ResourcePoolTypes.UpdateSpec
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(ResourcePoolTypes.CreateSpec spec)
Creates a resource pool.
|
void |
create(ResourcePoolTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a resource pool.
|
void |
create(ResourcePoolTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a resource pool.
|
java.lang.String |
create(ResourcePoolTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a resource pool.
|
void |
delete(java.lang.String resourcePool)
Deletes a resource pool.
|
void |
delete(java.lang.String resourcePool,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a resource pool.
|
void |
delete(java.lang.String resourcePool,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a resource pool.
|
void |
delete(java.lang.String resourcePool,
InvocationConfig invocationConfig)
Deletes a resource pool.
|
ResourcePoolTypes.Info |
get(java.lang.String resourcePool)
Retrieves information about the resource pool indicated by
resourcePool . |
void |
get(java.lang.String resourcePool,
AsyncCallback<ResourcePoolTypes.Info> asyncCallback)
Retrieves information about the resource pool indicated by
resourcePool . |
void |
get(java.lang.String resourcePool,
AsyncCallback<ResourcePoolTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the resource pool indicated by
resourcePool . |
ResourcePoolTypes.Info |
get(java.lang.String resourcePool,
InvocationConfig invocationConfig)
Retrieves information about the resource pool indicated by
resourcePool . |
java.util.List<ResourcePoolTypes.Summary> |
list(ResourcePoolTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
void |
list(ResourcePoolTypes.FilterSpec filter,
AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
void |
list(ResourcePoolTypes.FilterSpec filter,
AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
java.util.List<ResourcePoolTypes.Summary> |
list(ResourcePoolTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
void |
update(java.lang.String resourcePool,
ResourcePoolTypes.UpdateSpec spec)
Updates the configuration of a resource pool.
|
void |
update(java.lang.String resourcePool,
ResourcePoolTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the configuration of a resource pool.
|
void |
update(java.lang.String resourcePool,
ResourcePoolTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the configuration of a resource pool.
|
void |
update(java.lang.String resourcePool,
ResourcePoolTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates the configuration of a resource pool.
|
ResourcePoolTypes.Info get(java.lang.String resourcePool)
resourcePool
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.NotFound
- If the resource pool indicated by resourcePool
does not exist.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: ResourcePool
referenced by the parameter resourcePool
requires System.Read
. ResourcePoolTypes.Info get(java.lang.String resourcePool, InvocationConfig invocationConfig)
resourcePool
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.invocationConfig
- Configuration for the method invocation.NotFound
- If the resource pool indicated by resourcePool
does not exist.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: ResourcePool
referenced by the parameter resourcePool
requires System.Read
. void get(java.lang.String resourcePool, AsyncCallback<ResourcePoolTypes.Info> asyncCallback)
resourcePool
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the resource pool.
Operation Errors:
NotFound
- If the resource pool indicated by resourcePool
does not exist.
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:
ResourcePool
referenced by the parameter resourcePool
requires System.Read
. resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String resourcePool, AsyncCallback<ResourcePoolTypes.Info> asyncCallback, InvocationConfig invocationConfig)
resourcePool
.
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:
Information about the resource pool.
Operation Errors:
NotFound
- If the resource pool indicated by resourcePool
does not exist.
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:
ResourcePool
referenced by the parameter resourcePool
requires System.Read
. resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<ResourcePoolTypes.Summary> list(ResourcePoolTypes.FilterSpec filter)
ResourcePoolTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.ResourcePoolTypes.FilterSpec
.UnableToAllocateResource
- If more than 1000 resource pools match the ResourcePoolTypes.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<ResourcePoolTypes.Summary> list(ResourcePoolTypes.FilterSpec filter, InvocationConfig invocationConfig)
ResourcePoolTypes.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 resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.invocationConfig
- Configuration for the method invocation.ResourcePoolTypes.FilterSpec
.UnableToAllocateResource
- If more than 1000 resource pools match the ResourcePoolTypes.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(ResourcePoolTypes.FilterSpec filter, AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback)
ResourcePoolTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Commonly used information about the resource pools matching the ResourcePoolTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- If more than 1000 resource pools match the ResourcePoolTypes.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 resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(ResourcePoolTypes.FilterSpec filter, AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
ResourcePoolTypes.FilterSpec
.
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:
Commonly used information about the resource pools matching the ResourcePoolTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- If more than 1000 resource pools match the ResourcePoolTypes.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 resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String create(ResourcePoolTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Specification of the new resource pool to be created, see ResourcePoolTypes.CreateSpec
.ResourcePool
.Error
- If the system reports an error while responding to the request.InvalidArgument
- If a parameter passed in the spec is invalid.NotFound
- If the resource specified in parent could not be foundResourceInaccessible
- If the specified resource in parent is not accessible.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 resource pool could not be
allocated.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: ResourcePool
referenced by the property ResourcePoolTypes.CreateSpec.getParent()
requires Resource.CreatePool
. java.lang.String create(ResourcePoolTypes.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
- Specification of the new resource pool to be created, see ResourcePoolTypes.CreateSpec
.invocationConfig
- Configuration for the method invocation.ResourcePool
.Error
- If the system reports an error while responding to the request.InvalidArgument
- If a parameter passed in the spec is invalid.NotFound
- If the resource specified in parent could not be foundResourceInaccessible
- If the specified resource in parent is not accessible.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 resource pool could not be
allocated.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: ResourcePool
referenced by the property ResourcePoolTypes.CreateSpec.getParent()
requires Resource.CreatePool
. void create(ResourcePoolTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The identifier of the newly created resource pool.
The return value will be an identifier for the resource type: ResourcePool
.
Operation Errors:
Error
- If the system reports an error while responding to the request.
InvalidArgument
- If a parameter passed in the spec is invalid.
NotFound
- If the resource specified in parent could not be found
ResourceInaccessible
- If the specified resource in parent is not accessible.
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 resource pool could not be
allocated.
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:
ResourcePool
referenced by the property ResourcePoolTypes.CreateSpec.getParent()
requires Resource.CreatePool
. spec
- Specification of the new resource pool to be created, see ResourcePoolTypes.CreateSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(ResourcePoolTypes.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.
Invocation Result:
The identifier of the newly created resource pool.
The return value will be an identifier for the resource type: ResourcePool
.
Operation Errors:
Error
- If the system reports an error while responding to the request.
InvalidArgument
- If a parameter passed in the spec is invalid.
NotFound
- If the resource specified in parent could not be found
ResourceInaccessible
- If the specified resource in parent is not accessible.
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 resource pool could not be
allocated.
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:
ResourcePool
referenced by the property ResourcePoolTypes.CreateSpec.getParent()
requires Resource.CreatePool
. spec
- Specification of the new resource pool to be created, see ResourcePoolTypes.CreateSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String resourcePool)
Synchronous method overload. Result of the invocation will be reported as a method return value.
resourcePool
- Identifier of the resource pool to be deleted.
The parameter must be an identifier for the resource type: ResourcePool
.Error
- If the system reports an error while responding to the request.NotFound
- If the resource pool is not found.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.Unsupported
- If the resource pool is a root resource pool.void delete(java.lang.String resourcePool, 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.
resourcePool
- Identifier of the resource pool to be deleted.
The parameter must be an identifier for the resource type: ResourcePool
.invocationConfig
- Configuration for the method invocation.Error
- If the system reports an error while responding to the request.NotFound
- If the resource pool is not found.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.Unsupported
- If the resource pool is a root resource pool.void delete(java.lang.String resourcePool, 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 resource pool is not found.
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.
Unsupported
- If the resource pool is a root resource pool.
resourcePool
- Identifier of the resource pool to be deleted.
The parameter must be an identifier for the resource type: ResourcePool
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String resourcePool, 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 resource pool is not found.
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.
Unsupported
- If the resource pool is a root resource pool.
resourcePool
- Identifier of the resource pool to be deleted.
The parameter must be an identifier for the resource type: ResourcePool
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void update(java.lang.String resourcePool, ResourcePoolTypes.UpdateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
resourcePool
- Identifier of the resource pool.
The parameter must be an identifier for the resource type: ResourcePool
.spec
- Specification for updating the configuration of the resource pool.Error
- If the system reports an error while responding to the request.InvalidArgument
- If any of the specified parameters is invalid.NotFound
- If the resource pool is not found.ServiceUnavailable
- If the system is unable to communicate with a service to complete the request.UnableToAllocateResource
- If any of the resources needed to reconfigure the resource pool could not be
allocated.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: ResourcePool
referenced by the parameter resourcePool
requires Resource.EditPool
. void update(java.lang.String resourcePool, ResourcePoolTypes.UpdateSpec 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.
resourcePool
- Identifier of the resource pool.
The parameter must be an identifier for the resource type: ResourcePool
.spec
- Specification for updating the configuration of the resource pool.invocationConfig
- Configuration for the method invocation.Error
- If the system reports an error while responding to the request.InvalidArgument
- If any of the specified parameters is invalid.NotFound
- If the resource pool is not found.ServiceUnavailable
- If the system is unable to communicate with a service to complete the request.UnableToAllocateResource
- If any of the resources needed to reconfigure the resource pool could not be
allocated.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: ResourcePool
referenced by the parameter resourcePool
requires Resource.EditPool
. void update(java.lang.String resourcePool, ResourcePoolTypes.UpdateSpec spec, 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.
InvalidArgument
- If any of the specified parameters is invalid.
NotFound
- If the resource pool is not found.
ServiceUnavailable
- If the system is unable to communicate with a service to complete the request.
UnableToAllocateResource
- If any of the resources needed to reconfigure the resource pool could not be
allocated.
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:
ResourcePool
referenced by the parameter resourcePool
requires Resource.EditPool
. resourcePool
- Identifier of the resource pool.
The parameter must be an identifier for the resource type: ResourcePool
.spec
- Specification for updating the configuration of the resource pool.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void update(java.lang.String resourcePool, ResourcePoolTypes.UpdateSpec 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:
Error
- If the system reports an error while responding to the request.
InvalidArgument
- If any of the specified parameters is invalid.
NotFound
- If the resource pool is not found.
ServiceUnavailable
- If the system is unable to communicate with a service to complete the request.
UnableToAllocateResource
- If any of the resources needed to reconfigure the resource pool could not be
allocated.
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:
ResourcePool
referenced by the parameter resourcePool
requires Resource.EditPool
. resourcePool
- Identifier of the resource pool.
The parameter must be an identifier for the resource type: ResourcePool
.spec
- Specification for updating the configuration of the resource pool.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.