REST API - listAttributeNamesLargeQuery

The table summarizes the REST API - listAttributeNamesLargeQuery.

Request

Format
POST <baseurl>/directory/attributes/<ldapalias>
Path parameters ldapalias: the alias of the LDAP entry on which the query is evaluated. LDAP Connection Shared Resources are named with the prefix ldap/de/ in order to indicate that they are  intended for Directory Engine use. The alias given here is that name without the ldap/de/ prefix. Can be obtained from a previous call to listLdapConnections .
Query parameters
  • basedn=string (optional): the base Distinguished Name (DN) to which the query is restricted. This is relative to, and in addition to, any base DN specified in the LDAP Connection Shared Resource's URL.
  • samplesize=int (optional, default=0): the maximum number of randomly-selected LDAP entries to be returned.
Body ldap-query (required) the parameter from the listAttributeNames element (from the DirectoryService schema) that defines the query to be evaluated. The query must conform to the RFC 2254 LDAP Search Filter standard.

Response

JSON Returns a JSON representation of the content of the listAttributeNamesResponse element.
XML Returns the content of the listAttributeNamesResponse element (from the DirectoryService schema).

Example

Request
POST <baseurl>/directory/attributes/easyAs?samplesize=1
Request body
(&(objectclass=person)(employeetype=Permanent))
Response
 {
       "xml-fragment":
       {
           "@ldap-alias": "easyAs",
           "@ldap-query": "(objectclass=person)",
           "@entry-count": "8",
           "attribute":
           [
               {
                   "@name": "givenname",
                   "@binary": "false"
               },
               {
                   "@name": "employeetype",
                   "@binary": "false"
               },
           ],
           "sample-entry":
           {
               "@ldap-dn": "OU=Clint Hill, OU=Swindon, OU=AllEmployees, O=easyAsInsurance",
               "attribute":
               [
                   {
                       "@name": "givenname",
                       "@binary": "false",
                       "value": "Clint"
                   },
                   {
                       "@name": "employeetype",
                       "@binary": "false",
                       "value": "Permanent"
                   }
               ]
           }
       }
    }