---
type: api
title: Get the ILM status
description: Get the current index lifecycle management status.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v8/operation/operation-ilm-get-status
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v8/operation/operation-ilm-get-status
products:
  - Elasticsearch
---

# Get the ILM status

Availability: Generally available since 6.6

## Paths

- `GET` `/_ilm/status`

## Description

Get the current index lifecycle management status.

## Required authorization

- Cluster privileges: `read_ilm`

## Authentication

- Api key: `Authorization: <value>`
  Elasticsearch APIs support key-based authentication.
  You must create an API key and use the encoded value in the request header.
  For example:
  
  
  ```
  curl -X GET "${ES_URL}/_cat/indices?v=true" \
    -H "Authorization: ApiKey ${API_KEY}"
  ```
  
  To get API keys, use the `/_security/api_key` APIs.
- Basic: `Authorization: Basic <credentials>`
- Bearer: `Authorization: Bearer <token>`
  Elasticsearch APIs support the use of bearer tokens in the `Authorization` HTTP header to authenticate with the API.
  For examples, refer to [Token-based authentication services](https://www.elastic.co/guide/en/elasticsearch/reference/current/token-authentication-services.html)

## Response

`application/json`

- `operation_mode` (enum)
  Values: `RUNNING`, `STOPPING`, `STOPPED`
## Code examples

#### Console

```console
GET _ilm/status
```

#### JavaScript

```javascript
const response = await client.ilm.getStatus();
```

#### Python

```python
resp = client.ilm.get_status()
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/_ilm/status" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.ilm().getStatus();
```

#### C#

```c#
var response = await client.IndexLifecycleManagement.GetStatusAsync();
```

#### PHP

```php
$resp = $client->ilm()->getStatus();
```

#### Ruby

```ruby
response = client.ilm.get_status
```

## Response examples

#### Get ilmstatus response example1

A successful response when retrieving the current ILM status.

```json
{
  "operation_mode": "RUNNING"
}
```

