Host Active Directory Authentication Leave Current Domain Task
Removes the host from the Active Directory domain to which it belongs.
Required privileges: Host.Config.AuthenticationStore
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case HostActiveDirectoryAuthentication/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"LeaveCurrentDomainRequestType Object"
If True
, any existing permissions on managed entities for
Active Directory users will be deleted. If False
and such
permissions exist, the operation will fail.
InvalidState: if the host is not in a domain or there are active permissions for Active Directory users.
NonADUserRequired: only non Active Directory users can initiate the leave domain operation.
AuthMinimumAdminPermission: if this change would leave the system with no Administrator permission on the root node.
ActiveDirectoryFault: for any problem that is not handled with a specific fault.
TaskInProgress: if the ActiveDirectoryAuthentication object is busy.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostActiveDirectoryAuthentication/{moId}/LeaveCurrentDomain_Task