Fetch all organization units for a Directory domain.
(Deprecated)
Deprecated: Use the following Policy API -
GET /policy/api/v1/infra/firewall-identity-stores/<firewall-identity-store-id>/org-units
Request:
URI Path(s):
/api/v1/directory/domains/{domain-id}/org-units
Example Request:
POST https://{{NSX}}/api/v1/directory/domains/106e9dc9-4c4f-4396-9992-8ba3e477d89d/org-units
Successful Response:
Response Headers:
Content-type: application/json
Response Body:
DirectoryOrgUnitListResults+
_links |
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST. |
array of ResourceLink |
Readonly |
_schema |
Schema for this resource |
string |
Readonly |
_self |
Link to this resource |
SelfResourceLink |
Readonly |
cursor |
Opaque cursor to be used for getting next page of records (supplied by current result page) |
string |
Readonly |
result_count |
Count of results found (across all pages), set only on first page |
integer |
Readonly |
results |
List of Organization Units |
array of DirectoryOrgUnit |
Required Maximum items: 500 |
sort_ascending |
If true, results are sorted in ascending order |
boolean |
Readonly |
sort_by |
Field by which records are sorted |
string |
Readonly |
Example Response:
{
"results": [
{
"name": "Domain Controllers",
"distinguished_name": "OU=Domain Controllers,DC=idfw,DC=local"
}
],
"result_count": 1
}
Required Permissions:
crud
Feature:
directory_service
Additional Errors: