Package com.vmware.vim25.mo
Class GuestAliasManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.GuestAliasManager
-
Constructor Summary
ConstructorsConstructorDescriptionGuestAliasManager(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGuestAlias(VirtualMachine vm, GuestAuthentication auth, String username, boolean mapCert, String base64Cert, GuestAuthAliasInfo aliasInfo) listGuestAliases(VirtualMachine vm, GuestAuthentication auth, String userName) Lists theGuestAliasesfor a specified user in the guest that can be used for authentication of guest operations.Lists the GuestMappedAliases in the guest that can be used for authentication of guest operations.voidremoveGuestAlias(VirtualMachine vm, GuestAuthentication auth, String username, String base64Cert, GuestAuthSubject subject) voidremoveGuestAliasByCert(VirtualMachine vm, GuestAuthentication auth, String username, String base64Cert) Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
GuestAliasManager
-
-
Method Details
-
addGuestAlias
public void addGuestAlias(VirtualMachine vm, GuestAuthentication auth, String username, boolean mapCert, String base64Cert, GuestAuthAliasInfo aliasInfo) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
removeGuestAlias
public void removeGuestAlias(VirtualMachine vm, GuestAuthentication auth, String username, String base64Cert, GuestAuthSubject subject) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
removeGuestAliasByCert
public void removeGuestAliasByCert(VirtualMachine vm, GuestAuthentication auth, String username, String base64Cert) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
listGuestAliases
public GuestAliases[] listGuestAliases(VirtualMachine vm, GuestAuthentication auth, String userName) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException Lists theGuestAliasesfor a specified user in the guest that can be used for authentication of guest operations.- Parameters:
vm- Virtual machine to perform the operation on.auth- The guest authentication data for this operation. SeeGuestAuthentication. These credentials must satisfy authentication requirements for a guest account on the specified virtual machine.userName- The guest user whose Alias store is being queried.- Returns:
- GuestAliases[]
- Throws:
GuestComponentsOutOfDate- Thrown if the guest agent is too old to support the operation.GuestOperationsFault- Thrown if there is an error processing a guest operation.GuestOperationsUnavailable- Thrown if the agent for guest operations is not running.GuestPermissionDenied- Thrown if there are insufficient permissions in the guest OS.InvalidGuestLogin- Thrown if the the guest authentication information was not accepted.InvalidPowerState- Thrown if the VM is not powered on.InvalidState- Thrown if the operation cannot be performed because of the virtual machine's current state.OperationDisabledByGuest- Thrown if the operation is not enabled due to guest agent configuration.OperationNotSupportedByGuest- Thrown if the operation is not supported by the guest OS.RuntimeFault- Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.TaskInProgress- Thrown if the virtual machine is busy.RemoteException
-
listGuestMappedAliases
public GuestMappedAliases[] listGuestMappedAliases(VirtualMachine vm, GuestAuthentication auth) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException Lists the GuestMappedAliases in the guest that can be used for authentication of guest operations.- Parameters:
vm-VirtualMachineto perform the operation on.auth-GuestAuthenticationThe guest authentication data for this operation. These credentials must satisfy authentication requirements for a guest account on the specified virtual machine.- Returns:
- GuestMappedAliases[]
- Throws:
GuestComponentsOutOfDate- Thrown if the guest agent is too old to support the operation.GuestOperationsFault- Thrown if there is an error processing a guest operation.GuestOperationsUnavailable- Thrown if the VM agent for guest operations is not running.GuestPermissionDenied- Thrown if there are insufficient permissions in the guest OS.InvalidGuestLogin- Thrown if the the guest authentication information was not accepted.InvalidPowerState- Thrown if the VM is not powered on.InvalidState- Thrown if the operation cannot be performed because of the virtual machine's current state.OperationDisabledByGuest- Thrown if the operation is not enabled due to guest agent configuration.OperationNotSupportedByGuest- Thrown if the operation is not supported by the guest OS.RuntimeFault- Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.TaskInProgress- Thrown if the virtual machine is busy.RemoteException
-