URL structure
{ldapConnectionId} is the ID of a LDAP connection.
Supported methods and overview
GET- retrieves information about an existing LDAP connection (specified byldapConnectionId).PUT- modifies the fields of an existing LDAP connection (specified byldapConnectionId) and also allows this LDAP connection to be disabled or re-enabled.
The
GET method takes no parameters.Detailed description
This API endpoint serves a number of purposes:- Retrieves information about an existing LDAP connection (specified by
ldapConnectionId). An LDAP connection’s ID can be obtained by calling theGETmethod of the <access-service>/api/v1/ldapconnections API endpoint, which retrieves a list of field information for all LDAP connections configured on the Covata Platform.
Tip: All information returned in the response from aGETmethod call to this API endpoint is also returned in the response from theGETmethod call to the <access-service>/api/v1/ldapconnections endpoint. Therefore, there is no need to call theGETmethod on this API endpoint if you already have the required information from calling <access-service>/api/v1/ldapconnections. - Modifies the fields of an existing LDAP connection (specified by
ldapConnectionId). Also allows this LDAP connection to be disabled or re-enabled.
Supported roles
This API endpoint supports the following Covata user roles (as described in the SafeShare Administrator’s Guide): The Covata Platform’s resources available to a Covata user meeting the criteria above is determined by the access token submitted in the header of requests to this endpoint.Required headers
The appropriate access token as theBearer token:
Authorisation: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
Content-Type: application/json
Optional parameters
The following optional parameters can be sent in the body of the PUT request, each as individual members of a JSON object:- serverUrl - .
- serverTimeout - .
- managerDN - .
- managerPassword - .
- baseDN - .
- syncFilter - .
- authFilter - .
- domain - .
- accountNameField - .
- emailField - .
- userPrincipalNameField - .
- fullnameField - .
- statusField - .
- statusDisabledValue - .
-
enable - A boolean value determining whether to enable (
true) or disable (false) this LDAP connection.
Example (request - altering the server timeout value and ensuring that the LDAP connection remains enabled):
Returns
If the request succeeded, then an HTTP response status200 OK is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
- id - .
- serverUrl - .
- serverTimeout - .
- baseDN - .
- authFilter - .
- managerDN - .
- managerPassword - .
- syncFilter - .
- domain - .
- enabled - .
- accountNameField - .
- emailField - .
- userPrincipalNameField - .
- fullnameField - .
- statusField - .
-
statusDisabledValue - .
Example (response):

