Verify Directory Ldap Server
This API tests a LDAP server connectivity before the actual domain or LDAP server is configured. If the connectivity is good, the response will be HTTP status 200. Otherwise the response will be HTTP status 500 and corresponding error message will be returned.
Use the following Policy API -
POST /policy/api/v1/infra/firewall-identity-store-ldap-server
LDAP server test requested
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"_revision": 0,
"_create_time": 0,
"_create_user": "string",
"_last_modified_time": 0,
"_last_modified_user": "string",
"_protection": "string",
"_system_owned": false,
"description": "string",
"display_name": "string",
"id": "string",
"resource_type": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"domain_name": "string",
"host": "string",
"password": "string",
"port": 0,
"protocol": "string",
"thumbprint": "string",
"username": "string"
}
OK
"DirectoryLdapServerStatus Object"
Error ID of the directory LDAP server status maintained by the NSX directory service.
Error message of the directory LDAP server status maintained by the NSX directory service.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"host:"string"}' https://{api_host}/api/v1/directory/ldap-server