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.
{
"force": false
}
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.
OK
{
"_typeName": "string",
"type": "string",
"value": "string"
}
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.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}