System Administration > Configuration > Directory Service > Domains

Fetch all organization units for a LDAP server. (Deprecated)

Deprecated:
Use the following Policy API -
POST /policy/api/v1/infra/firewall-identity-stores-org-units

Request:

Method:
POST
URI Path(s):
/api/v1/directory/org-units
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DirectoryLdapServer+

Example Request:

POST https://<nsx-mgr>/api/v1/directory/org-units { "resource_type": "DirectoryAdLdapServer", "display_name": "nimbus ldap", "host": "10.92.43.247", "domain_name": "idfw.local", "username": "administrator", "password": "password", "thumbprint": "3b1f4f3b636569d648a3092fc5b5b00fe4f6ec6abd34de86ae657f4bba22913e", "port": 389, "protocol": "LDAP" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
DirectoryOrgUnitListResults+

Example Response:

{ "results": [ { "name": "Domain Controllers", "distinguished_name": "OU=Domain Controllers,DC=idfw,DC=local" }, { "name": "Top1OU", "distinguished_name": "OU=Top1OU,DC=idfw,DC=local", "children": [ { "name": "B", "distinguished_name": "OU=B,OU=Top1OU,DC=idfw,DC=local", "children": [ { "name": "BB", "distinguished_name": "OU=BB,OU=B,OU=Top1OU,DC=idfw,DC=local" } ] }, { "name": "A", "distinguished_name": "OU=A,OU=Top1OU,DC=idfw,DC=local", "children": [ { "name": "AA", "distinguished_name": "OU=AA,OU=A,OU=Top1OU,DC=idfw,DC=local" } ] } ] }, { "name": "Top2OU", "distinguished_name": "OU=Top2OU,DC=idfw,DC=local", "children": [ { "name": "C", "distinguished_name": "OU=C,OU=Top2OU,DC=idfw,DC=local" } ] } ], "result_count": 8 }

Required Permissions:

crud

Feature:

directory_service

Additional Errors: