---
type: api
title: Resume an auto-follow pattern
description: Resume a cross-cluster replication auto-follow pattern that was paused.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-ccr-resume-auto-follow-pattern
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-ccr-resume-auto-follow-pattern
products:
  - Elasticsearch
---

# Resume an auto-follow pattern

Availability: 7.5+

## Paths

- `POST` `/_ccr/auto_follow/{name}/resume`

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

#### Path Parameters

- `name` (string Name)
  The name of the auto-follow pattern to resume.

## Description

Resume a cross-cluster replication auto-follow pattern that was paused.
The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster.
Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim.

## Required authorization

* Cluster privileges: `manage_ccr`

[More about auto-follow patterns](https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication/manage-auto-follow-patterns)

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  The period to wait for a connection to the master node.
If the master node is not available before the timeout expires, the request fails and returns an error.
It can also be set to `-1` to indicate that the request should never timeout.

## Response

`application/json`

- `acknowledged` (boolean)
  For a successful response, this value is always true. On failure, an exception is returned instead.
## Code Examples

#### Console

```console
POST /_ccr/auto_follow/my_auto_follow_pattern/resume
```

#### JavaScript

```javascript
const response = await client.ccr.resumeAutoFollowPattern({
  name: "my_auto_follow_pattern",
});
```

#### Python

```python
resp = client.ccr.resume_auto_follow_pattern(
    name="my_auto_follow_pattern",
)
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_ccr/auto_follow/my_auto_follow_pattern/resume" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.ccr().resumeAutoFollowPattern(r -> r
    .name("my_auto_follow_pattern")
);
```

#### C#

```c#
var response = await client.CrossClusterReplication.ResumeAutoFollowPatternAsync(name: "my_auto_follow_pattern");
```

#### PHP

```php
$resp = $client->ccr()->resumeAutoFollowPattern([
    "name" => "my_auto_follow_pattern",
]);
```

#### Ruby

```ruby
response = client.ccr.resume_auto_follow_pattern(
  name: "my_auto_follow_pattern"
)
```

## Response Examples

#### Resume auto follow pattern response example1

A successful response `POST /_ccr/auto_follow/my_auto_follow_pattern/resume`, which resumes an auto-follow pattern.

```json
{
  "acknowledged" : true
}
```

