REST API - listContainers

The table summarizes the REST API - listContainers.

Request

Format
GET <baseurl>/directory/containers

Response

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

Example

Request
GET <baseurl>/directory/containers
Response
{
       "ldap-container":
       {
           "@id": "1",
           "@name": "xyz corporate users",
           "@last-accessed": "2013-01-22T13:59:25.917Z",
           "@active": "true",
           "primary-ldap":
           {
               "@ldap-alias": "easyAs",
               "@ldap-query": "(objectClass=organizationalPerson)",
               "@resource-name-attributes": "cn"
           }
       }
}