Removes the follower retention leases from the leader Added in 6.7.0

POST /{index}/_ccr/forget_follower

Path parameters

  • index string Required

    the name of the leader index for which specified follower retention leases should be removed

application/json

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • _shards object Required

      Additional properties are allowed.

      Hide _shards attributes Show _shards attributes object
      • failed number Required
      • successful number Required
      • total number Required
      • failures array[object]
        Hide failures attributes Show failures attributes object
        • index string
        • node string
        • reason object Required

          Additional properties are allowed.

          Hide reason attributes Show reason attributes object
          • type string Required

            The type of error

          • reason string

            A human-readable explanation of the error, in english

          • The server stack trace. Present only if the error_trace=true parameter was sent with the request.

          • Additional properties are allowed.

          • root_cause array[object]

            Additional properties are allowed.

          • suppressed array[object]

            Additional properties are allowed.

        • shard number Required
        • status string
      • skipped number
POST /{index}/_ccr/forget_follower
curl \
 -X POST http://api.example.com/{index}/_ccr/forget_follower \
 -H "Content-Type: application/json" \
 -d '{"follower_cluster":"string","follower_index":"string","follower_index_uuid":"string","leader_remote_cluster":"string"}'
Request examples
{
  "follower_cluster": "string",
  "follower_index": "string",
  "follower_index_uuid": "string",
  "leader_remote_cluster": "string"
}
Response examples (200)
{
  "_shards": {
    "failed": 42.0,
    "successful": 42.0,
    "total": 42.0,
    "failures": [
      {
        "index": "string",
        "node": "string",
        "reason": {
          "type": "string",
          "reason": "string",
          "stack_trace": "string",
          "caused_by": {},
          "root_cause": [
            {}
          ],
          "suppressed": [
            {}
          ]
        },
        "shard": 42.0,
        "status": "string"
      }
    ],
    "skipped": 42.0
  }
}