public interface LibraryItem extends Service, LibraryItemTypes
LibraryItem
interface provides methods to identify virtual machines
managed by Content Library. This interface was added in vSphere API 6.9.1.LibraryItemTypes.CheckOutInfo, LibraryItemTypes.Info
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
LibraryItemTypes.Info |
get(java.lang.String vm)
Returns the information about the library item associated with the virtual
machine.
|
void |
get(java.lang.String vm,
AsyncCallback<LibraryItemTypes.Info> asyncCallback)
Returns the information about the library item associated with the virtual
machine.
|
void |
get(java.lang.String vm,
AsyncCallback<LibraryItemTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the information about the library item associated with the virtual
machine.
|
LibraryItemTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns the information about the library item associated with the virtual
machine.
|
LibraryItemTypes.Info get(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.NotFound
- if the virtual machine is not found.Unauthenticated
- if the user that requested the method cannot be authenticated.Unauthorized
- if the user that requested the method is not authorized to perform the method.LibraryItemTypes.Info get(java.lang.String vm, 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.
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.NotFound
- if the virtual machine is not found.Unauthenticated
- if the user that requested the method cannot be authenticated.Unauthorized
- if the user that requested the method is not authorized to perform the method.void get(java.lang.String vm, AsyncCallback<LibraryItemTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the library item associated with the virtual machine.
Operation Errors:
NotFound
- if the virtual machine is not found.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String vm, AsyncCallback<LibraryItemTypes.Info> 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:
Information about the library item associated with the virtual machine.
Operation Errors:
NotFound
- if the virtual machine is not found.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.