System Administration > Configuration > Directory Service > Domains

Create a directory domain (Deprecated)

Deprecated:
Use the following Policy API -
PUT /policy/api/v1/infra/firewall-identity-stores/<firewall-identity-store-id>

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/directory/domains { "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" } ], "sync_settings": { "delta_sync_interval": 100 }, "selective_sync_settings": { "enabled": true, "selected_org_units": [ "OU=OU11,OU=OU1,DC=nimbustest,DC=com", "OU=OU21,OU=OU1,DC=nimbustest,DC=com" ] } }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
DirectoryAdDomain+

Example Response:

{ "resource_type": "DirectoryAdDomain", "description": "Active directory domain nimbustest.com", "id": "876f66eb-64c1-4b0c-9489-ae8c6ebfcc32", "name": "nimbustest.com", "display_name": "NIMBUS TEST", "base_distinguished_name": "DC=nimbustest,DC=com", "netbios_name": "NIMBUSTEST", "ldap_servers": [ { "resource_type": "DirectoryLdapServer", "id": "a8dacae0-6e4f-46b6-a962-eeeea7a3ea37", "display_name": "nimbus ldap test", "protocol": "LDAP", "port": 389, "host": "10.192.210.96", "thumbprint": "3b1f4f3b636569d648a3092fc5b5b00fe4f6ec6abd34de86ae657f4bba22913e", "_last_modified_user": "admin", "_last_modified_time": 1531939962738, "_system_owned": false, "_create_user": "admin", "_create_time": 1531939962738, "_protection": "NOT_PROTECTED", "_revision": 0 } ], "sync_settings": { "delta_sync_interval": 100 }, "selective_sync_settings": { "enabled": true, "selected_org_units": [ "OU=OU11,OU=OU1,DC=nimbustest,DC=com", "OU=OU21,OU=OU1,DC=nimbustest,DC=com" ] } "_last_modified_user": "admin", "_last_modified_time": 1531939962695, "_system_owned": false, "_create_user": "admin", "_create_time": 1531936487738, "_protection": "NOT_PROTECTED", "_revision": 1 }

Required Permissions:

crud

Feature:

directory_service

Additional Errors: