System Administration > Configuration > Directory Service > Domains

Update a directory domain (Deprecated)

Update to any field in the directory domain will trigger a full sync Deprecated:
Use the following Policy API -
PUT /policy/api/v1/infra/firewall-identity-stores/<firewall-identity-store-id>

Request:

Method:
PUT
URI Path(s):
/api/v1/directory/domains/{domain-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DirectoryAdDomain+

Example Request:

PUT https://<nsx-mgr>/api/v1/directory/domains/e38b4362-0638-4bbe-89ad-c76cd9b3167d { "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 test", "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" ] } "_revision": 1 }

Successful Response:

Response Code:
200 OK
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": 2 }

Required Permissions:

crud

Feature:

directory_service

Additional Errors: