public interface Datastore extends Service, DatastoreTypes
DatastoreTypes.FilterSpec, DatastoreTypes.Info, DatastoreTypes.Summary, DatastoreTypes.Type
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
DatastoreTypes.Info |
get(java.lang.String datastore)
Retrieves information about the datastore indicated by
datastore . |
void |
get(java.lang.String datastore,
AsyncCallback<DatastoreTypes.Info> asyncCallback)
Retrieves information about the datastore indicated by
datastore . |
void |
get(java.lang.String datastore,
AsyncCallback<DatastoreTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the datastore indicated by
datastore . |
DatastoreTypes.Info |
get(java.lang.String datastore,
InvocationConfig invocationConfig)
Retrieves information about the datastore indicated by
datastore . |
java.util.List<DatastoreTypes.Summary> |
list(DatastoreTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
void |
list(DatastoreTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
void |
list(DatastoreTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
java.util.List<DatastoreTypes.Summary> |
list(DatastoreTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
DatastoreTypes.Info get(java.lang.String datastore)
datastore
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
datastore
- Identifier of the datastore for which information should be retrieved.
The parameter must be an identifier for the resource type: Datastore
.NotFound
- if the datastore indicated by datastore
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.DatastoreTypes.Info get(java.lang.String datastore, InvocationConfig invocationConfig)
datastore
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
datastore
- Identifier of the datastore for which information should be retrieved.
The parameter must be an identifier for the resource type: Datastore
.invocationConfig
- Configuration for the method invocation.NotFound
- if the datastore indicated by datastore
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.void get(java.lang.String datastore, AsyncCallback<DatastoreTypes.Info> asyncCallback)
datastore
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
information about the datastore.
Operation Errors:
NotFound
- if the datastore indicated by datastore
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.
datastore
- Identifier of the datastore for which information should be retrieved.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String datastore, AsyncCallback<DatastoreTypes.Info> asyncCallback, InvocationConfig invocationConfig)
datastore
.
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 datastore.
Operation Errors:
NotFound
- if the datastore indicated by datastore
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.
datastore
- Identifier of the datastore for which information should be retrieved.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<DatastoreTypes.Summary> list(DatastoreTypes.FilterSpec filter)
DatastoreTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.DatastoreTypes.FilterSpec
.InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.UnableToAllocateResource
- if more than 1000 datastores match the DatastoreTypes.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<DatastoreTypes.Summary> list(DatastoreTypes.FilterSpec filter, InvocationConfig invocationConfig)
DatastoreTypes.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 datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.invocationConfig
- Configuration for the method invocation.DatastoreTypes.FilterSpec
.InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.UnableToAllocateResource
- if more than 1000 datastores match the DatastoreTypes.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(DatastoreTypes.FilterSpec filter, AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback)
DatastoreTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Commonly used information about the datastores matching the DatastoreTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 datastores match the DatastoreTypes.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 datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(DatastoreTypes.FilterSpec filter, AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
DatastoreTypes.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 datastores matching the DatastoreTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 datastores match the DatastoreTypes.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 datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.