public interface Datacenter extends Service, DatacenterTypes
Datacenter
interface provides methods to manage datacenters in the
vCenter Server.DatacenterTypes.CreateSpec, DatacenterTypes.FilterSpec, DatacenterTypes.Info, DatacenterTypes.Summary
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(DatacenterTypes.CreateSpec spec)
Create a new datacenter in the vCenter inventory
|
void |
create(DatacenterTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Create a new datacenter in the vCenter inventory
|
void |
create(DatacenterTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Create a new datacenter in the vCenter inventory
|
java.lang.String |
create(DatacenterTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Create a new datacenter in the vCenter inventory
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force)
Delete an empty datacenter from the vCenter Server
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force,
AsyncCallback<java.lang.Void> asyncCallback)
Delete an empty datacenter from the vCenter Server
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Delete an empty datacenter from the vCenter Server
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force,
InvocationConfig invocationConfig)
Delete an empty datacenter from the vCenter Server
|
DatacenterTypes.Info |
get(java.lang.String datacenter)
Retrieves information about the datacenter corresponding to
datacenter . |
void |
get(java.lang.String datacenter,
AsyncCallback<DatacenterTypes.Info> asyncCallback)
Retrieves information about the datacenter corresponding to
datacenter . |
void |
get(java.lang.String datacenter,
AsyncCallback<DatacenterTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the datacenter corresponding to
datacenter . |
DatacenterTypes.Info |
get(java.lang.String datacenter,
InvocationConfig invocationConfig)
Retrieves information about the datacenter corresponding to
datacenter . |
java.util.List<DatacenterTypes.Summary> |
list(DatacenterTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
void |
list(DatacenterTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
void |
list(DatacenterTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
java.util.List<DatacenterTypes.Summary> |
list(DatacenterTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
java.lang.String create(DatacenterTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Specification for the new datacenter to be created.Datacenter
.Error
- if the system reports an error while responding to the request.AlreadyExists
- if the datacenter with the same name is already present.InvalidArgument
- if the datacenter name is empty or invalid as per the underlying implementation.InvalidArgument
- if the folder is not specified and the system cannot choose a suitable one.NotFound
- if the datacenter folder cannot be 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.java.lang.String create(DatacenterTypes.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 for the new datacenter to be created.invocationConfig
- Configuration for the method invocation.Datacenter
.Error
- if the system reports an error while responding to the request.AlreadyExists
- if the datacenter with the same name is already present.InvalidArgument
- if the datacenter name is empty or invalid as per the underlying implementation.InvalidArgument
- if the folder is not specified and the system cannot choose a suitable one.NotFound
- if the datacenter folder cannot be 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.void create(DatacenterTypes.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 datacenter
The return value will be an identifier for the resource type: Datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
AlreadyExists
- if the datacenter with the same name is already present.
InvalidArgument
- if the datacenter name is empty or invalid as per the underlying implementation.
InvalidArgument
- if the folder is not specified and the system cannot choose a suitable one.
NotFound
- if the datacenter folder cannot be 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.
spec
- Specification for the new datacenter to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(DatacenterTypes.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 datacenter
The return value will be an identifier for the resource type: Datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
AlreadyExists
- if the datacenter with the same name is already present.
InvalidArgument
- if the datacenter name is empty or invalid as per the underlying implementation.
InvalidArgument
- if the folder is not specified and the system cannot choose a suitable one.
NotFound
- if the datacenter folder cannot be 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.
spec
- Specification for the new datacenter to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String datacenter, java.lang.Boolean force)
Synchronous method overload. Result of the invocation will be reported as a method return value.
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.Error
- if the system reports an error while responding to the request.NotFound
- if there is no datacenter associated with datacenter
in the system.ResourceInUse
- if the datacenter associated with datacenter
is not empty.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 datacenter, java.lang.Boolean force, 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.
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if there is no datacenter associated with datacenter
in the system.ResourceInUse
- if the datacenter associated with datacenter
is not empty.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 datacenter, java.lang.Boolean force, 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 there is no datacenter associated with datacenter
in the system.
ResourceInUse
- if the datacenter associated with datacenter
is not empty.
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.
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String datacenter, java.lang.Boolean force, 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 there is no datacenter associated with datacenter
in the system.
ResourceInUse
- if the datacenter associated with datacenter
is not empty.
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.
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<DatacenterTypes.Summary> list(DatacenterTypes.FilterSpec filter)
DatacenterTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.DatacenterTypes.FilterSpec
.UnableToAllocateResource
- if more than 1000 datacenters match the DatacenterTypes.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<DatacenterTypes.Summary> list(DatacenterTypes.FilterSpec filter, InvocationConfig invocationConfig)
DatacenterTypes.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 datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.invocationConfig
- Configuration for the method invocation.DatacenterTypes.FilterSpec
.UnableToAllocateResource
- if more than 1000 datacenters match the DatacenterTypes.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(DatacenterTypes.FilterSpec filter, AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback)
DatacenterTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Commonly used information about the datacenters matching the DatacenterTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 datacenters match the DatacenterTypes.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 datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(DatacenterTypes.FilterSpec filter, AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
DatacenterTypes.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 datacenters matching the DatacenterTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 datacenters match the DatacenterTypes.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 datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.DatacenterTypes.Info get(java.lang.String datacenter)
datacenter
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.DatacenterTypes.Info
instances that corresponds
to the datacenter
.Error
- if the system reports an error while responding to the request.NotFound
- if there is no datacenter associated with datacenter
in the system.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.DatacenterTypes.Info get(java.lang.String datacenter, InvocationConfig invocationConfig)
datacenter
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.invocationConfig
- Configuration for the method invocation.DatacenterTypes.Info
instances that corresponds
to the datacenter
.Error
- if the system reports an error while responding to the request.NotFound
- if there is no datacenter associated with datacenter
in the system.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 datacenter, AsyncCallback<DatacenterTypes.Info> asyncCallback)
datacenter
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The DatacenterTypes.Info
instances that corresponds
to the datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if there is no datacenter associated with datacenter
in the system.
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.
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String datacenter, AsyncCallback<DatacenterTypes.Info> asyncCallback, InvocationConfig invocationConfig)
datacenter
.
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 DatacenterTypes.Info
instances that corresponds
to the datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if there is no datacenter associated with datacenter
in the system.
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.
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.