---
type: api
title: Get the snapshot lifecycle management status
description: ## Required authorization
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-slm-get-status
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-slm-get-status
products:
  - Elasticsearch
---

# Get the snapshot lifecycle management status

Availability: 7.6+

## Paths

- `GET` `/_slm/status`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#bearerauth)

## Description



## Required authorization

* Cluster privileges: `read_slm`

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  The period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
To indicate that the request should never timeout, set it to `-1`.
- `timeout` (string Duration · default: 30s)
  The period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
To indicate that the request should never timeout, set it to `-1`.

## Response

`application/json`

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

#### Console

```console
GET _slm/status
```

#### JavaScript

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

#### Python

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

#### curl

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

#### Java

```java
client.slm().getStatus(g -> g);
```

#### C#

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

#### PHP

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

#### Ruby

```ruby
response = client.slm.get_status
```

## Response Examples

#### Get snapshot lifecycle management status response example1

A successful response from `GET _slm/status`.

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

