{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-ccr-follow-info-follower-index-schema.json",
  "title": "ccr.follow_info.FollowerIndex",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-ccr-api-openapi.yml#/components/schemas/ccr.follow_info.FollowerIndex",
  "type": "object",
  "properties": {
    "follower_index": {
      "description": "The name of the follower index.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.IndexName"
        }
      ]
    },
    "leader_index": {
      "description": "The name of the index in the leader cluster that is followed.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.IndexName"
        }
      ]
    },
    "parameters": {
      "description": "An object that encapsulates cross-cluster replication parameters. If the follower index's status is paused, this object is omitted.",
      "allOf": [
        {
          "$ref": "#/$defs/ccr.follow_info.FollowerIndexParameters"
        }
      ]
    },
    "remote_cluster": {
      "description": "The remote cluster that contains the leader index.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Name"
        }
      ]
    },
    "status": {
      "description": "The status of the index following: `active` or `paused`.",
      "allOf": [
        {
          "$ref": "#/$defs/ccr.follow_info.FollowerIndexStatus"
        }
      ]
    }
  },
  "required": [
    "follower_index",
    "leader_index",
    "remote_cluster",
    "status"
  ],
  "$defs": {
    "_types.ByteSize": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "_types.Duration": {
      "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "-1"
          ]
        },
        {
          "type": "string",
          "enum": [
            "0"
          ]
        }
      ]
    },
    "_types.IndexName": {
      "type": "string"
    },
    "_types.Name": {
      "type": "string"
    },
    "ccr.follow_info.FollowerIndexParameters": {
      "type": "object",
      "properties": {
        "max_outstanding_read_requests": {
          "description": "The maximum number of outstanding reads requests from the remote cluster.",
          "type": "number"
        },
        "max_outstanding_write_requests": {
          "description": "The maximum number of outstanding write requests on the follower.",
          "type": "number"
        },
        "max_read_request_operation_count": {
          "description": "The maximum number of operations to pull per read from the remote cluster.",
          "type": "number"
        },
        "max_read_request_size": {
          "description": "The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "max_retry_delay": {
          "description": "The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when\nretrying.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "max_write_buffer_count": {
          "description": "The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be\ndeferred until the number of queued operations goes below the limit.",
          "type": "number"
        },
        "max_write_buffer_size": {
          "description": "The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will\nbe deferred until the total bytes of queued operations goes below the limit.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "max_write_request_operation_count": {
          "description": "The maximum number of operations per bulk write request executed on the follower.",
          "type": "number"
        },
        "max_write_request_size": {
          "description": "The maximum total bytes of operations per bulk write request executed on the follower.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "read_poll_timeout": {
          "description": "The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.\nWhen the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics.\nThen the follower will immediately attempt to read from the leader again.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        }
      }
    },
    "ccr.follow_info.FollowerIndexStatus": {
      "type": "string",
      "enum": [
        "active",
        "paused"
      ]
    }
  }
}