REST API - getLdapEntry
The table summarizes the REST API - getLdapEntry.
Request
Format | GET <baseurl>/directory/entry/<ldapalias>/<ldapdn> |
Path parameters |
|
Query parameters | attrname= string (optional): the name of the attribute being enquired about. There may be zero or more repetitions of this entry, one per attribute. If no attribute names are included, all the entry’s attributes are returned. |
Response
JSON | Returns a JSON representation of the content of the getLdapEntryResponseelement. |
XML | Returns the content of the getLdapEntryResponseelement (from the DirectoryService schema). |
Example
Request | GET <baseurl>/directory/entry/easyAs/ou=Jon%20Parkin,ou=Paris,ou=AllEmployees,o=easyAsInsurance?attr-name=employeetype&attrname=userpassword |
Response | { "xml-fragment": { "@ldap-alias": "easyAs", "@ldap-dn": "ou=Jon Parkin,ou=Paris,ou=AllEmployees,o=easyAsInsurance", "attribute": [ { "@name": "employeetype", "value": "Permanent" }, { "@name": "userpassword", "@binary": "true", "value": "dGliY28xMjM=" } ] } } |