Package com.vmware.vim25.mo
Class HostAccessManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.HostAccessManager
-
Constructor Summary
ConstructorsConstructorDescriptionHostAccessManager(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeAccessMode(String principal, boolean isGroup, HostAccessMode accessMode) voidString[]Get the list of users which are exceptions for lockdown mode.String[]Get the list of local system users.Retrieve access entries.voidvoidupdateLockdownExceptions(String[] users) voidvoidupdateSystemUsers(String[] users) 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
-
HostAccessManager
-
-
Method Details
-
getLockdownMode
-
changeAccessMode
public void changeAccessMode(String principal, boolean isGroup, HostAccessMode accessMode) throws AuthMinimumAdminPermission, UserNotFound, RuntimeFault, RemoteException -
changeLockdownMode
public void changeLockdownMode(HostLockdownMode mode) throws AuthMinimumAdminPermission, RuntimeFault, RemoteException -
updateLockdownExceptions
public void updateLockdownExceptions(String[] users) throws AuthMinimumAdminPermission, UserNotFound, RuntimeFault, RemoteException -
updateSystemUsers
- Throws:
UserNotFoundRuntimeFaultRemoteException
-
queryLockdownExceptions
Get the list of users which are exceptions for lockdown mode.- Returns:
- The list of users which will not lose their permissions when the host enters lockdown mode.
- Throws:
RuntimeFaultRemoteException- See Also:
-
querySystemUsers
Get the list of local system users.These are special users like 'vpxuser', 'vslauser' and 'dcui', which may be used for authenticating different sub-components of the vSphere system and may be essential for its correct functioning. Usually these users may not be used by human operators to connect directly to the host and the UI may choose to show them only in some "advanced" UI view.
- Returns:
- The list of local system users.
- Throws:
RuntimeFaultRemoteException
-
retrieveHostAccessControlEntries
public HostAccessControlEntry[] retrieveHostAccessControlEntries() throws RuntimeFault, RemoteExceptionRetrieve access entries. Returns a list of AccessEntry objects for each VIM user or group which have explicitly assigned permissions on the host. This means that AccessMode#accessNone will not be present in the result.- Returns:
- A list of AccessEntry objects.
- Throws:
RuntimeFaultRemoteException
-
updateLockdownExceptions
public void updateLockdownExceptions() throws AuthMinimumAdminPermission, RuntimeFault, UserNotFound, RemoteException -
updateSystemUsers
-