API Documentation
|
where {ldapConnectionId}
is the ID of a LDAP connection.
GET
- retrieves information about an existing LDAP connection (specified by ldapConnectionId
).PUT
- modifies the fields of an existing LDAP connection (specified by ldapConnectionId
) and also allows this LDAP connection to be disabled or re-enabled.Note: The
GET
method takes no parameters.
This API endpoint serves a number of purposes:
ldapConnectionId
). An LDAP connection's ID can be obtained by calling the GET
method of the <access-service>/api/v1/ldapconnections API endpoint, which retrieves a list of field information for all LDAP connections configured on the Cocoon Data Platform. GET
method call to this API endpoint is also returned in the response from the GET
method call to the <access-service>/api/v1/ldapconnections endpoint. Therefore, there is no need to call the GET
method on this API endpoint if you already have the required information from calling <access-service>/api/v1/ldapconnections.ldapConnectionId
). Also allows this LDAP connection to be disabled or re-enabled.This API endpoint supports the following Cocoon Data user roles (as described in the SafeShare Administrator's Guide):
The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria above is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
The following header is required if the body of the request has a JSON object:
Content-Type: application/json
The following optional parameters can be sent in the body of the PUT request, each as individual members of a JSON object:
true
) or disable (false
) this LDAP connection. If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned: