# Use api to get and set the minimum number of masters

**URL:** https://discuss.elastic.co/t/use-api-to-get-and-set-the-minimum-number-of-masters/194927
**Category:** Elasticsearch
**Created:** [August 12, 2019, 10:40pm UTC](https://discuss.elastic.co/t/use-api-to-get-and-set-the-minimum-number-of-masters/194927 "2019-08-12T22:40:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lwwalker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwwalker/32/52139_2.png) [@lwwalker](https://discuss.elastic.co/u/lwwalker)
#### Post date: [August 12, 2019, 10:40pm UTC](https://discuss.elastic.co/t/use-api-to-get-and-set-the-minimum-number-of-masters/194927/1 "2019-08-12T22:40:14Z")

</div>

discovery.zen.minimum\_master\_nodes is the config file setting, but I can't find how to get the current value, or set a new value via the API.

---

<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: [September 9, 2019, 10:40pm UTC](https://discuss.elastic.co/t/use-api-to-get-and-set-the-minimum-number-of-masters/194927/2 "2019-09-09T22:40:22Z")

</div>

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