LDAP Last Modified¶
Retrieve a list of modified OU’s by date¶
-
GET
/api/v1/ldap/
(string: ldap_id)/modified/
¶ Gets a list of LDAP entries that have changed since a specific horizon set back in time up to now. This list may include tenants, groups and users according to LDAP backend Service Data configuration.
Example request:
GET /api/v1/ldap/Customer_LDAP_Concentrator/modified/ HTTP/1.1 Host: example.com Content-Type: "application/json" { "delta": "-1d2h15m" }
- Request JSON Object:
delta (string) – the horizon back in time set relatively to now time. Minimum horizon is 1 minute:
-1m
and maximum horizon is-365d23h59m
(365 days, 23 hours and 59 minutes)
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" { "horizon": "2020-12-01T16:53", "objects": { "tenants": [ "ou=ldap_tenant1,ou=Instance1,dc=vendor,dc=intra", "ou=ldap_tenant2,ou=Instance1,dc=vendor,dc=intra", "ou=ldap_tenant3,ou=Instance1,dc=vendor,dc=intra" ], "groups": [ "ou=ldap_group1,ou=ldap_tenant1,ou=Instance1,dc=vendor,dc=intra", "ou=ldap_group2,ou=ldap_tenant1,ou=Instance1,dc=vendor,dc=intra" ], "users": [ "uid=first_1.last_1@netaxis.be,ou=ldap_group1,ou=ldap_tenant1,ou=Instance1,dc=vendor,dc=intra", "uid=first_6.last_6@netaxis.be,ou=ldap_ group 3,ou=ldap_tenant2,ou=Instance1,dc=vendor,dc=intra", "uid=first_12.last_12@netaxis.be,ou=ldap_ group 4,ou=ldap_tenant2,ou=Instance1,dc=vendor,dc=intra", "uid=first_99.last_99@netaxis.beou=ldap_group1,ou=ldap_tenant3,ou=Instance1,dc=vendor,dc=intra" ] } }
- Response JSON Object:
horizon (string) – The horizon set from the delta parameter in a human readable timestamp form:
YYYY-MM-DDThh:mm
objects (array) – a list of modified objects, put in their respective tenant, group or user categories
- Status Codes:
200 OK – no error.
400 Bad Request – format of the JSON input data not valid.
404 Not Found – no matching object could be found.