The Directory REST API is the native interface for client access to the PingDirectory Server. Instead of trying to manage directory hierarchy or require attribute mapping, the Directory REST API provides direct access to directory data in a way that is dynamic, discoverable, and efficient.
The Directory REST API gives developers who are more comfortable with REST than LDAP access to arbitrary directory data in a way that ensures directory data remains consistent regardless of whether it is accessed from LDAP or REST. The Directory API is enabled during server setup. After setup, individual services and applications can be enabled or disabled by configuring the HTTPS Connection Handler.
While both the Directory REST API and System for Cross-domain Identity Management (SCIM) provide REST access to directory data, the goals of the two protocols are different. SCIM is useful to generic, external clients that require simple, narrow access to identity data, but because it is a less common standard for identity stores, it might not offer as much functionality or be as user-friendly as the Directory REST API.
The Directory REST API can be used for the following operations.
HTTP operation | Resource endpoint | Description | Allowed query parameters |
---|---|---|---|
DELETE |
/directory/v1/{dn} |
Delete an entry. |
|
GET |
/directory/v1 |
Get metadata about the API and server. |
|
GET |
/directory/v1/{dn} |
Retrieve a single entry. |
|
GET |
/directory/v1/{dn}/subtree |
Search an entry's descendants. |
|
GET |
/directory/v1/schemas |
Retrieve the schemas of all available object classes. |
|
GET |
/directory/v1/schemas/{objectclass} |
Retrieve schema for a specific object class. |
|
GET |
/directory/v1/schemas/_operationalAttributes |
Retrieve schema for operational attributes. |
|
GET |
/directory/v1/me |
Alias for retrieving the current user. |
|
PATCH |
/directory/v1/{dn} |
Modify an entry (add or delete values). |
expand |
POST |
/directory/v1 |
Create a new entry. |
expand |
PUT |
/directory/v1/{dn} |
Modify or rename an entry. |
expand |