List LDAP Configurations
get
/api/v1/configuration/ldapConfig
Lists all the LDAP configurations.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK
Root Schema : schema
Type:
Show Source
array
-
Array of:
object LdapConfigDetail
LDAP Configuration details
Nested Schema : LdapConfigDetail
Type:
object
LDAP Configuration details
Show Source
-
connectTimeout(optional):
integer
-
groupClassName(optional):
string
-
groupMembershipAttribute(optional):
string
-
groupNameAttribute(optional):
string
-
ldapBaseDN(optional):
string
-
ldapBindDN(optional):
string
-
ldapBindPassword(optional):
string
-
ldapHost(optional):
string
-
ldapId(optional):
string
-
ldapName(optional):
string
-
ldapPort(optional):
integer
-
ldapTLSCACert(optional):
string
-
ldapTLSEnabled(optional):
boolean
-
ldapType(optional):
string
-
tlsRootCACertFileName(optional):
string
-
userClassName(optional):
string
-
userNameAttribute(optional):
string
400 Response
Bad Request
401 Response
Not authorized
500 Response
Service unavailable
Examples
This endpoint is used to get the list of all the LDAP configurations in your Blockchain platform.
The following example shows how to generate the list of LDAP configurations by submitting a GET request on the REST resource using cURL.
curl -X GET \ http://<hostname>:<port>/api/v1/configuration/ldapConfig
For example,
curl -X GET \ http://localhost:17070/api/v1/configuration/ldapConfig
Example of the Response Body
The following example shows the contents of the response body in JSON format:
[ { "ldapId": "DEFAULT-LDAP-ID-001", "ldapName": "Default", "ldapType": "OpenLDAP", "ldapHost": "myvm.oracle.com", "ldapPort": 389, "ldapTLSEnabled": false, "ldapBaseDN": "dc=example,dc=org", "ldapBindDN": "cn=admin,dc=example,dc=org", "ldapBindPassword": "********", "userNameAttribute": "cn", "userClassName": "simpleSecurityObject", "groupNameAttribute": "cn", "groupMembershipAttribute": "member", "groupClassName": "groupOfNames", "connectTimeout": 30000 }, { "ldapId": "a455c6ab-dc36-4553-90c4-bddb3532bc50", "ldapName": "localLDAP", "ldapType": "OpenLDAP", "ldapHost": "10.0.2.15", "ldapPort": 389, "ldapTLSEnabled": false, "ldapBaseDN": "dc=example,dc=org", "ldapBindDN": "cn=admin,dc=example,dc=org", "ldapBindPassword": "********", "userNameAttribute": "cn", "userClassName": "simpleSecurityObject", "groupNameAttribute": "cn", "groupMembershipAttribute": "member", "groupClassName": "groupOfNames", "connectTimeout": 30000 } ]