System Administration > Configuration > Directory Service > Domains

Scan the size of a directory domain (Deprecated)

This call scans the size of a directory domain. It may be very | expensive to run this call in some AD domain deployments. Please | use it with caution. Deprecated:
Use the following Policy API -
POST /policy/api/v1/infra/firewall-identity-store-size

Request:

Method:
POST
URI Path(s):
/api/v1/directory/domain-size
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DirectoryAdDomain+

Example Request:

POST https://<nsx-mgr>/api/v1/directory/domain-size { "resource_type": "DirectoryAdDomain", "description": "Active directory domain nimbustest.com", "display_name": "NIMBUS TEST", "base_distinguished_name": "DC=nimbustest,DC=com", "netbios_name": "NIMBUSTEST", "name": "nimbustest.com", "ldap_servers": [ { "resource_type": "DirectoryAdLdapServer", "display_name": "nimbus ldap", "host": "10.192.210.96", "username": "dummy", "password": "dummy", "thumbprint": "3b1f4f3b636569d648a3092fc5b5b00fe4f6ec6abd34de86ae657f4bba22913e", "port": 389, "protocol": "LDAP" } ] }

Successful Response:

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

Example Response:

{ "user_count": 52712, "group_count": 100053, "group_member_count": 1000027 }

Required Permissions:

read

Feature:

directory_service

Additional Errors: