public interface Identity extends Service, IdentityTypes
Identity
interface provides methods for retrieving guest operating
system identification information. This interface was added in vSphere API 6.7.IdentityTypes.Info
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
IdentityTypes.Info |
get(java.lang.String vm)
Return information about the guest.
|
void |
get(java.lang.String vm,
AsyncCallback<IdentityTypes.Info> asyncCallback)
Return information about the guest.
|
void |
get(java.lang.String vm,
AsyncCallback<IdentityTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Return information about the guest.
|
IdentityTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Return information about the guest.
|
IdentityTypes.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
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.ServiceUnavailable
- if VMware Tools is not running.ServiceUnavailable
- if VMware Tools has not provided any data.IdentityTypes.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.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.ServiceUnavailable
- if VMware Tools is not running.ServiceUnavailable
- if VMware Tools has not provided any data.void get(java.lang.String vm, AsyncCallback<IdentityTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
guest identification information.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
ServiceUnavailable
- if VMware Tools is not running.
ServiceUnavailable
- if VMware Tools has not provided any data.
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<IdentityTypes.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:
guest identification information.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
ServiceUnavailable
- if VMware Tools is not running.
ServiceUnavailable
- if VMware Tools has not provided any data.
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.