Get LDAP configuration
Retrieves a single LDAP security realm configuration.
Path parameters
-
The Elasticsearch Security realm identifier.
GET
/platform/configuration/security/realms/ldap/{realm_id}
curl \
-X GET https://{{hostname}}/api/v1/platform/configuration/security/realms/ldap/{realm_id}
Response examples (200)
# Headers
x-cloud-resource-version: string
x-cloud-resource-created: string
x-cloud-resource-last-modified: string
# Payload
{
"id": "string",
"name": "string",
"urls": [
"string"
],
"bind_anonymously": true,
"bind_type": "user_search",
"group_search": {
"base_dn": "string",
"scope": "sub_tree",
"filter": "string",
"user_attribute": "string"
},
"user_search": {
"base_dn": "string",
"scope": "sub_tree",
"filter": "string"
},
"user_dn_templates": [
"string"
],
"bind_dn": "string",
"bind_password": "string",
"user_group_attribute": "string",
"load_balance": {
"type": "failover",
"cache_ttl": "string"
},
"certificate_url": "string",
"certificate_url_truststore_password": "string",
"certificate_url_truststore_type": "jks",
"role_mappings": {
"default_roles": [
"string"
],
"rules": [
{
"type": "user_dn",
"roles": [
"string"
],
"value": "string"
}
]
},
"enabled": true,
"order": 42,
"override_yaml": "string"
}
Response examples (404)
# Headers
x-cloud-error-codes: security_realm.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}