public interface Mappings extends com.vmware.vapi.bindings.Service, MappingsTypes
Mappings
interface can be used to manage the relationship between
containerized objects and vTContainer instances. A containerized object is any
data object that is associated with a vTContainer instance, and can be of any
resource type.
Each vTContainer instance can hold any number of containerized objects, but there is a service defined limit to the number of vTContainer instances that can be associated with a single containerized object.
When a containerized object is deleted, its mappings to vTContainer instances are automatically removed. However, a vTContainer instance cannot be deleted until all mappings to it have been removed.
. This interface was added in vSphere API 8.0.3.0.MappingsTypes.CreateSpec, MappingsTypes.FilterSpec, MappingsTypes.Info, MappingsTypes.IterationSpec, MappingsTypes.ListItem, MappingsTypes.ListResult
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(MappingsTypes.CreateSpec spec)
Creates a new mapping that associates an object with a vTContainer instance.
|
void |
create(MappingsTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback)
Creates a new mapping that associates an object with a vTContainer instance.
|
void |
create(MappingsTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Creates a new mapping that associates an object with a vTContainer instance.
|
java.lang.String |
create(MappingsTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Creates a new mapping that associates an object with a vTContainer instance.
|
void |
delete(java.lang.String mapping)
Removes a mapping.
|
void |
delete(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Removes a mapping.
|
void |
delete(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Removes a mapping.
|
void |
delete(java.lang.String mapping,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Removes a mapping.
|
MappingsTypes.Info |
get(java.lang.String mapping)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
void |
get(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
void |
get(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
MappingsTypes.Info |
get(java.lang.String mapping,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
MappingsTypes.ListResult |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
void |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
void |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
MappingsTypes.ListResult |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
java.lang.String create(MappingsTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- The specification of a new mapping.com.vmware.vcenter.authorization.vt_containers.Mapping
.AlreadyExists
- if the configuration already exists.Error
- if there is a generic error.InvalidArgument
- if the inputs are not valid.NotAllowedInCurrentState
- if the limit of mappings for the specified object has been reached.NotFound
- if the vTContainer or the object does not exist.Unsupported
- if the object type does not support containerization.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
specified object.Unauthorized
- if the caller does not have privilege to access objects in the specified
vTContainer.Unauthorized
- if you do not have all of the privileges described as follows: Authorization.ModifyVTContainerMappings
. java.lang.String create(MappingsTypes.CreateSpec spec, com.vmware.vapi.bindings.client.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
- The specification of a new mapping.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.authorization.vt_containers.Mapping
.AlreadyExists
- if the configuration already exists.Error
- if there is a generic error.InvalidArgument
- if the inputs are not valid.NotAllowedInCurrentState
- if the limit of mappings for the specified object has been reached.NotFound
- if the vTContainer or the object does not exist.Unsupported
- if the object type does not support containerization.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
specified object.Unauthorized
- if the caller does not have privilege to access objects in the specified
vTContainer.Unauthorized
- if you do not have all of the privileges described as follows: Authorization.ModifyVTContainerMappings
. void create(MappingsTypes.CreateSpec spec, com.vmware.vapi.bindings.client.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 new mapping.
The return value will be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.
Operation Errors:
AlreadyExists
- if the configuration already exists.
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
NotAllowedInCurrentState
- if the limit of mappings for the specified object has been reached.
NotFound
- if the vTContainer or the object does not exist.
Unsupported
- if the object type does not support containerization.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
specified object.
Unauthorized
- if the caller does not have privilege to access objects in the specified
vTContainer.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. spec
- The specification of a new mapping.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(MappingsTypes.CreateSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback, com.vmware.vapi.bindings.client.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 new mapping.
The return value will be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.
Operation Errors:
AlreadyExists
- if the configuration already exists.
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
NotAllowedInCurrentState
- if the limit of mappings for the specified object has been reached.
NotFound
- if the vTContainer or the object does not exist.
Unsupported
- if the object type does not support containerization.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
specified object.
Unauthorized
- if the caller does not have privilege to access objects in the specified
vTContainer.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. spec
- The specification of a new mapping.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.MappingsTypes.ListResult list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate)
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.Error
- if there is a generic error.InvalidArgument
- if the inputs are not valid.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. MappingsTypes.ListResult list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate, com.vmware.vapi.bindings.client.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.
filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.invocationConfig
- Configuration for the method invocation.Error
- if there is a generic error.InvalidArgument
- if the inputs are not valid.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
A list of mappings.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback, com.vmware.vapi.bindings.client.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:
A list of mappings.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.MappingsTypes.Info get(java.lang.String mapping)
Synchronous method overload. Result of the invocation will be reported as a method return value.
mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.Error
- if there is a generic error.NotFound
- if the mapping is not found.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. MappingsTypes.Info get(java.lang.String mapping, com.vmware.vapi.bindings.client.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.
mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.invocationConfig
- Configuration for the method invocation.Error
- if there is a generic error.NotFound
- if the mapping is not found.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void get(java.lang.String mapping, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The mapping information.
Operation Errors:
Error
- if there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String mapping, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback, com.vmware.vapi.bindings.client.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 mapping information.
Operation Errors:
Error
- if there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String mapping)
Synchronous method overload. Result of the invocation will be reported as a method return value.
mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.Error
- if there is a generic error.NotFound
- if the mapping is not found.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
object that is associated with the mapping.Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.Unauthorized
- if you do not have all of the privileges described as follows: Authorization.ModifyVTContainerMappings
. void delete(java.lang.String mapping, com.vmware.vapi.bindings.client.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.
mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.invocationConfig
- Configuration for the method invocation.Error
- if there is a generic error.NotFound
- if the mapping is not found.Unauthenticated
- if the caller cannot be authenticated.Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
object that is associated with the mapping.Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.Unauthorized
- if you do not have all of the privileges described as follows: Authorization.ModifyVTContainerMappings
. void delete(java.lang.String mapping, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
object that is associated with the mapping.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String mapping, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.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 there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
object that is associated with the mapping.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.