public interface Services extends Service, ServicesTypes
Services
interface contains information about the registered
instances of the Key Provider Service. This interface was added in vSphere API
7.0.0.ServicesTypes.CreateSpec, ServicesTypes.FilterSpec, ServicesTypes.Info, ServicesTypes.Summary
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(ServicesTypes.CreateSpec spec)
Adds a new
Services instance to this vCenter. |
void |
create(ServicesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Adds a new
Services instance to this vCenter. |
void |
create(ServicesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Adds a new
Services instance to this vCenter. |
java.lang.String |
create(ServicesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Adds a new
Services instance to this vCenter. |
void |
delete(java.lang.String service)
Removes a currently configured
Services instance from this vCenter. |
void |
delete(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback)
Removes a currently configured
Services instance from this vCenter. |
void |
delete(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Removes a currently configured
Services instance from this vCenter. |
void |
delete(java.lang.String service,
InvocationConfig invocationConfig)
Removes a currently configured
Services instance from this vCenter. |
ServicesTypes.Info |
get(java.lang.String service)
Returns the detailed information about an
Services instance for this
vCenter. |
void |
get(java.lang.String service,
AsyncCallback<ServicesTypes.Info> asyncCallback)
Returns the detailed information about an
Services instance for this
vCenter. |
void |
get(java.lang.String service,
AsyncCallback<ServicesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the detailed information about an
Services instance for this
vCenter. |
ServicesTypes.Info |
get(java.lang.String service,
InvocationConfig invocationConfig)
Returns the detailed information about an
Services instance for this
vCenter. |
java.util.List<ServicesTypes.Summary> |
list(ServicesTypes.FilterSpec spec)
Returns the list of all
Services instances for this vCenter. |
void |
list(ServicesTypes.FilterSpec spec,
AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback)
Returns the list of all
Services instances for this vCenter. |
void |
list(ServicesTypes.FilterSpec spec,
AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns the list of all
Services instances for this vCenter. |
java.util.List<ServicesTypes.Summary> |
list(ServicesTypes.FilterSpec spec,
InvocationConfig invocationConfig)
Returns the list of all
Services instances for this vCenter. |
java.util.List<ServicesTypes.Summary> list(ServicesTypes.FilterSpec spec)
Services
instances for this vCenter. This method
was added in vSphere API 7.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Return only services matching the specified filters.
If return all services.Services
instances for this vCenter.Error
- if an error occurred while getting the data.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ReadTrustedHosts
. java.util.List<ServicesTypes.Summary> list(ServicesTypes.FilterSpec spec, InvocationConfig invocationConfig)
Services
instances for this vCenter. This method
was added in vSphere API 7.0.0.
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
- Return only services matching the specified filters.
If return all services.invocationConfig
- Configuration for the method invocation.Services
instances for this vCenter.Error
- if an error occurred while getting the data.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ReadTrustedHosts
. void list(ServicesTypes.FilterSpec spec, AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback)
Services
instances for this vCenter. This method
was added in vSphere API 7.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of all Services
instances for this vCenter.
Operation Errors:
Error
- if an error occurred while getting the data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. spec
- Return only services matching the specified filters.
If return all services.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(ServicesTypes.FilterSpec spec, AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Services
instances for this vCenter. This method
was added in vSphere API 7.0.0.
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:
List of all Services
instances for this vCenter.
Operation Errors:
Error
- if an error occurred while getting the data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. spec
- Return only services matching the specified filters.
If return all services.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.ServicesTypes.Info get(java.lang.String service)
Services
instance for this
vCenter. This method was added in vSphere API 7.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.Services
instance.Error
- if an error occurred while getting the data.NotFound
- if there is no Services
instance with the specified ID.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ReadTrustedHosts
. ServicesTypes.Info get(java.lang.String service, InvocationConfig invocationConfig)
Services
instance for this
vCenter. This method was added in vSphere API 7.0.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.invocationConfig
- Configuration for the method invocation.Services
instance.Error
- if an error occurred while getting the data.NotFound
- if there is no Services
instance with the specified ID.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ReadTrustedHosts
. void get(java.lang.String service, AsyncCallback<ServicesTypes.Info> asyncCallback)
Services
instance for this
vCenter. This method was added in vSphere API 7.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Detailed information about the specified Services
instance.
Operation Errors:
Error
- if an error occurred while getting the data.
NotFound
- if there is no Services
instance with the specified ID.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String service, AsyncCallback<ServicesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Services
instance for this
vCenter. This method was added in vSphere API 7.0.0.
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:
Detailed information about the specified Services
instance.
Operation Errors:
Error
- if an error occurred while getting the data.
NotFound
- if there is no Services
instance with the specified ID.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String create(ServicesTypes.CreateSpec spec)
Services
instance to this vCenter. This method was added in
vSphere API 7.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- The CreateSpec for the new service.com.vmware.vcenter.trusted_platform.kms.Service
.AlreadyExists
- if there is already a Services
instance with the same Address.Error
- if there is a generic error.InvalidArgument
- if the CreateSpec contains invalid data.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ManageTrustedHosts
. java.lang.String create(ServicesTypes.CreateSpec spec, InvocationConfig invocationConfig)
Services
instance to this vCenter. This method was added in
vSphere API 7.0.0.
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
- The CreateSpec for the new service.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.trusted_platform.kms.Service
.AlreadyExists
- if there is already a Services
instance with the same Address.Error
- if there is a generic error.InvalidArgument
- if the CreateSpec contains invalid data.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ManageTrustedHosts
. void create(ServicesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Services
instance to this vCenter. This method was added in
vSphere API 7.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ID of the newly registered Key Provider Service instance.
The return value will be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.
Operation Errors:
AlreadyExists
- if there is already a Services
instance with the same Address.
Error
- if there is a generic error.
InvalidArgument
- if the CreateSpec contains invalid data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. spec
- The CreateSpec for the new service.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(ServicesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Services
instance to this vCenter. This method was added in
vSphere API 7.0.0.
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:
ID of the newly registered Key Provider Service instance.
The return value will be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.
Operation Errors:
AlreadyExists
- if there is already a Services
instance with the same Address.
Error
- if there is a generic error.
InvalidArgument
- if the CreateSpec contains invalid data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. spec
- The CreateSpec for the new service.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String service)
Services
instance from this vCenter. This
method was added in vSphere API 7.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.Error
- if an error occurred while deleting the service.NotFound
- if the Services
instance is not found.ResourceBusy
- if the Services
instance is used by a configuration on a cluster level.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ManageTrustedHosts
. void delete(java.lang.String service, InvocationConfig invocationConfig)
Services
instance from this vCenter. This
method was added in vSphere API 7.0.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.invocationConfig
- Configuration for the method invocation.Error
- if an error occurred while deleting the service.NotFound
- if the Services
instance is not found.ResourceBusy
- if the Services
instance is used by a configuration on a cluster level.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: TrustedAdmin.ManageTrustedHosts
. void delete(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback)
Services
instance from this vCenter. This
method was added in vSphere API 7.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if an error occurred while deleting the service.
NotFound
- if the Services
instance is not found.
ResourceBusy
- if the Services
instance is used by a configuration on a cluster level.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Services
instance from this vCenter. This
method was added in vSphere API 7.0.0.
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 an error occurred while deleting the service.
NotFound
- if the Services
instance is not found.
ResourceBusy
- if the Services
instance is used by a configuration on a cluster level.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. service
- the Services
instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_platform.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.