# API to Configure Elasticsearch 7.5

**URL:** <https://discuss.elastic.co/t/api-to-configure-elasticsearch-7-5/214125>\
**Category:** Elasticsearch\
**Created:** [January 7, 2020, 8:18pm UTC](https://discuss.elastic.co/t/api-to-configure-elasticsearch-7-5/214125 "2020-01-07T20:18:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balogan](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@balogan](https://discuss.elastic.co/u/balogan)\
**Post date:** [January 7, 2020, 8:18pm UTC](https://discuss.elastic.co/t/api-to-configure-elasticsearch-7-5/214125/1 "2020-01-07T20:18:26Z")

</div>

I have the needed xpack configs that go in elasticsearch.yml to get LDAP to work with Elasticsearch now I need the API to automate building it but I can't find it anywhere. I tried adding the configs to elasticsearch.yml followed by restarting the cluster in a 1 node cluster, and it tanked the deployment.

ECE 2.4.3  
Elasticsearch/Kibana 7.5.0

---

<div class="post-metadata">

**Author:** ![balogan](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@balogan](https://discuss.elastic.co/u/balogan)\
**Post date:** [January 10, 2020, 4:10pm UTC](https://discuss.elastic.co/t/api-to-configure-elasticsearch-7-5/214125/2 "2020-01-10T16:10:30Z")

</div>

I figured this out. The LDAP configs go in for this key user\_settings\_yaml in the JSON for the data nodes in the API that builds the cluster. I had to do a display of the cluster using the API to get the syntax after putting the LDAP configs in the UI.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 7, 2020, 4:10pm UTC](https://discuss.elastic.co/t/api-to-configure-elasticsearch-7-5/214125/3 "2020-02-07T16:10:32Z")

</div>

Closed on February 7, 2020, 4:10pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
