# Shutdown Elastic through API

**URL:** <https://discuss.elastic.co/t/shutdown-elastic-through-api/378194>\
**Category:** Elasticsearch\
**Created:** [May 15, 2025, 5:13pm UTC](https://discuss.elastic.co/t/shutdown-elastic-through-api/378194 "2025-05-15T17:13:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [May 15, 2025, 5:13pm UTC](https://discuss.elastic.co/t/shutdown-elastic-through-api/378194/1 "2025-05-15T17:13:58Z")

</div>

Hi Team,

We have Elastic cluster running(self-managed) . We wanted to shutdown or restart the service without going to server. I followed this documentation [node-lifecycle](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/node-lifecycle-api.html) but it didn't work for me.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 15, 2025, 5:29pm UTC](https://discuss.elastic.co/t/shutdown-elastic-through-api/378194/2 "2025-05-15T17:29:40Z")

</div>

> [@Aniket\_Pant](#):
>
> We wanted to shutdown or restart the service without going to server.

This is not supported natively, you would need to build something to automate that for you.

> [@Aniket\_Pant](#):
>
> I followed this documentation [node-lifecycle](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/node-lifecycle-api.html) but it didn't work for me.

As mentioned in the documentation:

> This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. **Direct use is not supported.**

So, I would assume that calling this API directly is not supported.

Also, it would not do what you want:

> **This API does NOT terminate the Elasticsearch process.** Monitor the node shutdown status to determine when it is safe to stop Elasticsearch.
