# How to get value of API call for Elasticsearch keystore

**URL:** https://discuss.elastic.co/t/how-to-get-value-of-api-call-for-elasticsearch-keystore/316032
**Category:** Elastic Cloud Enterprise (ECE)
**Created:** [October 7, 2022, 5:48am UTC](https://discuss.elastic.co/t/how-to-get-value-of-api-call-for-elasticsearch-keystore/316032 "2022-10-07T05:48:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ronak\_Darji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronak_darji/32/98729_2.png) [@Ronak\_Darji](https://discuss.elastic.co/u/Ronak_Darji)
#### Post date: [October 7, 2022, 5:48am UTC](https://discuss.elastic.co/t/how-to-get-value-of-api-call-for-elasticsearch-keystore/316032/1 "2022-10-07T05:48:33Z")

</div>

Curl -XPATCH {{hostname}}/api/v1/clusters/elasticsearch/{cluster\_id}/keystore -H "Authorization: ApiKey $ECE\_API\_KEY"  
In above Api call what is the hostname, cluster\_id and ECE\_API\_KEY value and from where can i get those ?

---

<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: [November 4, 2022, 5:49am UTC](https://discuss.elastic.co/t/how-to-get-value-of-api-call-for-elasticsearch-keystore/316032/2 "2022-11-04T05:49:01Z")

</div>

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