We've rebuilt the Elastic API reference with a fresh design. Share your feedback.

Feedback on this page

  1. Docs /
  2. APIs /
  3. Elasticsearch API v8
View as Markdown
Download OpenAPI spec (JSON) Download OpenAPI spec (YAML)

Cross-cluster replication

Version 8.19 View the latest version (v9)

Endpoints

13 endpoints

  • GET Get auto-follow patterns /_ccr/auto_follow[/{name}]
  • PUT Create or update auto-follow patterns /_ccr/auto_follow/{name}
  • DELETE Delete auto-follow patterns /_ccr/auto_follow/{name}
  • POST Pause an auto-follow pattern /_ccr/auto_follow/{name}/pause
  • POST Resume an auto-follow pattern /_ccr/auto_follow/{name}/resume
  • GET Get cross-cluster replication stats /_ccr/stats
  • PUT Create a follower /{index}/_ccr/follow
  • POST Forget a follower /{index}/_ccr/forget_follower
  • GET Get follower information /{index}/_ccr/info
  • POST Pause a follower /{index}/_ccr/pause_follow
  • POST Resume a follower /{index}/_ccr/resume_follow
  • GET Get follower stats /{index}/_ccr/stats
  • POST Unfollow an index /{index}/_ccr/unfollow
On this page
  • Endpoints
Version
v9 (latest) v8
Elastic Stack
Elasticsearch API Elasticsearch Serverless API Kibana API Kibana Serverless API Logstash API
Orchestration
Elastic Cloud API Elastic Cloud Billing API Elastic Cloud Connected API Elastic Cloud Enterprise API Elastic Cloud Monitoring API Elastic Cloud Serverless API
All APIs
  • Overview
  • Authentication
  • Operations
    • Autoscaling
      • Get the autoscaling capacity
      • Get an autoscaling policy
      • Create or update an autoscaling policy
      • Delete an autoscaling policy
    • Behavioral analytics
      • Create a behavioral analytics collection event
      • Get behavioral analytics collections
      • Create a behavioral analytics collection
      • Delete a behavioral analytics collection
    • Cluster
      • Ping the cluster
      • Explain the shard allocations POSTGET
      • Get the cluster health status
      • Get the pending cluster tasks
      • Reroute the cluster
      • Get cluster-wide settings
      • Update the cluster settings
      • Get the cluster state
      • Get cluster statistics
      • Update voting configuration exclusions
      • Clear cluster voting config exclusions
      • Get cluster subsystem info
      • Get cluster repositories metering
      • Clear the archived repositories metering
      • Get the hot threads for nodes
      • Reload the keystore on nodes in the cluster
      • Get node statistics
      • Get feature usage information
      • Get node information
      • Get remote cluster information
    • Cluster - Health
      • Get the cluster health
    • Compact and aligned text (CAT)
      • Get CAT help
      • Get a compact list of aliases
      • Get shard allocation information
      • Get a compact list of component templates
      • Get a document count
      • Get field data cache information
      • Get a compact cluster health summary
      • Get a compact list of indices
      • Get master node information
      • Get anomaly detection jobs
      • Get data frame analytics jobs
      • Get datafeeds
      • Get trained models
      • Get node attribute information
      • Get a compact list of nodes
      • Get pending task information
      • Get plugin information
      • Get shard recovery information
      • Get a compact list of snapshot repositories
      • Get segment information
      • Get shard information
      • Get a compact list of snapshots
      • Get a compact list of running tasks
      • Get index template information
      • Get thread pool statistics
      • Get transform information
    • Connector
      • Get all connectors
      • Create a connector
      • Get all connector sync jobs
      • Create a connector sync job
      • Get a connector sync job
      • Delete a connector sync job
      • Cancel a connector sync job
      • Check in a connector sync job
      • Claim a connector sync job
      • Set a connector sync job error
      • Set the connector sync job stats
      • Get a connector
      • Create or update a connector
      • Delete a connector
      • Update the connector API key ID
      • Check in a connector
      • Update the connector configuration
      • Update the connector error field
      • Update the connector features
      • Update the connector filtering
      • Activate the connector draft filter
      • Update the connector draft filtering validation
      • Update the connector index name
      • Update the connector name and description
      • Update the connector is_native flag
      • Update the connector pipeline
      • Update the connector scheduling
      • Update the connector service type
      • Update the connector status
    • Cross-cluster replication
      • Get auto-follow patterns
      • Create or update auto-follow patterns
      • Delete auto-follow patterns
      • Pause an auto-follow pattern
      • Resume an auto-follow pattern
      • Get cross-cluster replication stats
      • Create a follower
      • Forget a follower
      • Get follower information
      • Pause a follower
      • Resume a follower
      • Get follower stats
      • Unfollow an index
    • Data stream
      • Convert an index alias to a data stream
      • Update data streams
      • Promote a data stream
      • Get data streams
      • Create a data stream
      • Delete data streams
      • Get data stream lifecycles
      • Update data stream lifecycles
      • Get data stream options
      • Update data stream options
      • Delete data stream options
      • Get data stream settings
      • Update data stream settings
      • Get data stream stats
      • Get data stream lifecycle stats
      • Downsample an index
      • Get the status for a data stream lifecycle
    • Document
      • Throttle a delete by query operation
      • Reindex documents
      • Throttle a reindex operation
      • Throttle an update by query operation
      • Bulk index or delete documents POSTPUT
      • Create a new document in the index POSTPUT
      • Delete documents
      • Get a document by its ID
      • Create or update a document in an index POSTPUT
      • Delete a document
      • Check a document
      • Get multiple documents POSTGET
      • Get multiple term vectors POSTGET
      • Get a document's source
      • Check for a document source
      • Get term vector information POSTGET
      • Update a document
      • Update documents
    • Enrich
      • Get enrich stats
      • Get an enrich policy
      • Create an enrich policy
      • Delete an enrich policy
      • Run an enrich policy
    • EQL
      • Get the async EQL status
      • Get async EQL search results
      • Delete an async EQL search
      • Get EQL search results POSTGET
    • ES|QL
      • Run an ES|QL query
      • Run an async ES|QL query
      • Get async ES|QL query results
      • Delete an async ES|QL query
      • Stop async ES|QL query
    • Features
      • Get the features
      • Reset the features
    • Fleet
      • Executes several fleet searches with a single API request POSTGET
      • The purpose of the fleet search api is to provide a search api where the search will only be executed POSTGET
      • Get global checkpoints
    • Graph explore
      • Explore graph analytics POSTGET
    • Index
      • Update aliases and delete indices atomically
      • Get component templates
      • Create or update a component template POSTPUT
      • Delete component templates
      • Check component templates
      • Get the dangling indices
      • Import a dangling index
      • Delete a dangling index
      • Delete data stream lifecycles
      • Simulate an index template
      • Simulate an index
      • Get index templates
      • Create or update an index template POSTPUT
      • Delete an index template
      • Check index templates
      • Resolve the cluster
      • Resolve indices
      • Get legacy index templates Deprecated
      • Create or update a legacy index template Deprecated POSTPUT
      • Delete a legacy index template Deprecated
      • Check existence of index templates
      • Roll over to a new index
      • Get index information
      • Create an index
      • Delete indices
      • Check indices
      • Get aliases
      • Check aliases
      • Create or update an alias POSTPUT
      • Delete an alias
      • Get tokens from text analysis POSTGET
      • Add an index block
      • Clear the cache
      • Clone an index POSTPUT
      • Close an index
      • Analyze the index disk usage
      • Get field usage stats
      • Flush data streams or indices POSTGET
      • Force a merge
      • Get mapping definitions
      • Update field mappings POSTPUT
      • Get field mapping definitions
      • Open a closed index
      • Get index recovery information
      • Refresh an index POSTGET
      • Reload search analyzers POSTGET
      • Get index segments
      • Update index settings
      • Get index settings
      • Get index shard stores
      • Shrink an index POSTPUT
      • Split an index POSTPUT
      • Get index statistics
      • Unfreeze an index Deprecated
      • Validate a query POSTGET
    • Index lifecycle management
      • Migrate to data tiers routing
      • Move to a lifecycle step
      • Get lifecycle policies
      • Create or update a lifecycle policy
      • Delete a lifecycle policy
      • Start the ILM plugin
      • Get the ILM status
      • Stop the ILM plugin
      • Explain the lifecycle state
      • Remove policies from an index
      • Retry a policy
    • Inference
      • Perform chat completion inference
      • Perform completion inference on the service
      • Perform streaming inference
      • Perform reranking inference on the service
      • Perform sparse embedding inference on the service
      • Perform text embedding inference on the service
      • Create an AlibabaCloud AI Search inference endpoint
      • Create an Amazon Bedrock inference endpoint
      • Create an Amazon SageMaker inference endpoint
      • Create an Anthropic inference endpoint
      • Create an Azure AI studio inference endpoint
      • Create an Azure OpenAI inference endpoint
      • Create a Cohere inference endpoint
      • Create a custom inference endpoint
      • Create a DeepSeek inference endpoint
      • Create an Elasticsearch inference endpoint
      • Create an ELSER inference endpoint Deprecated
      • Create an Google AI Studio inference endpoint
      • Create a Google Vertex AI inference endpoint
      • Create a Hugging Face inference endpoint
      • Get an inference endpoint
      • Perform inference on the service
      • Create an inference endpoint
      • Delete an inference endpoint
      • Update an inference endpoint
      • Create an JinaAI inference endpoint
      • Create a Mistral inference endpoint
      • Create an OpenAI inference endpoint
      • Create a VoyageAI inference endpoint
      • Create a Watsonx inference endpoint
    • Info
      • Get cluster info
    • Ingest
      • Get GeoIP database configurations
      • Create or update a GeoIP database configuration
      • Delete GeoIP database configurations
      • Get GeoIP statistics
      • Get IP geolocation database configurations
      • Create or update an IP geolocation database configuration
      • Delete IP geolocation database configurations
      • Get pipelines
      • Create or update a pipeline
      • Delete pipelines
      • Simulate a pipeline POSTGET
      • Run a grok processor
      • Simulate data ingestion POSTGET
    • Licensing
      • Get license information
      • Update the license POSTPUT
      • Delete the license
      • Get the basic license status
      • Start a basic license
      • Start a trial
      • Get the trial status
    • Logstash
      • Get Logstash pipelines
      • Create or update a Logstash pipeline
      • Delete a Logstash pipeline
    • Machine learning
      • Get machine learning information
      • Get machine learning memory usage info
      • Set upgrade_mode for ML indices
    • Machine learning anomaly detection
      • Delete expired ML data
      • Estimate job model memory usage
      • Get anomaly detection jobs configuration info
      • Create an anomaly detection job
      • Delete an anomaly detection job
      • Close anomaly detection jobs
      • Send data to an anomaly detection job for analysis Deprecated
      • Force buffered data to be processed
      • Predict future behavior of a time series
      • Delete forecasts from a job
      • Open anomaly detection jobs
      • Reset an anomaly detection job
      • Get anomaly detection job stats
      • Update an anomaly detection job
      • Get model snapshots info POSTGET
      • Delete a model snapshot
      • Revert to a snapshot
      • Update a snapshot
      • Upgrade a snapshot
      • Get anomaly detection job model snapshot upgrade usage info
      • Get anomaly detection job results for buckets POSTGET
      • Get anomaly detection job results for categories POSTGET
      • Get anomaly detection job results for influencers POSTGET
      • Get overall bucket results POSTGET
      • Get anomaly records for an anomaly detection job POSTGET
      • Get calendar configuration info POSTGET
      • Create a calendar
      • Delete a calendar
      • Get info about events in calendars
      • Add scheduled events to the calendar
      • Delete events from a calendar
      • Add anomaly detection job to calendar
      • Delete anomaly jobs from a calendar
      • Get datafeeds configuration info
      • Create a datafeed
      • Delete a datafeed
      • Preview a datafeed POSTGET
      • Start datafeeds
      • Get datafeed stats
      • Stop datafeeds
      • Update a datafeed
      • Get filters
      • Create a filter
      • Delete a filter
      • Update a filter
    • Machine learning data frame analytics
      • Evaluate data frame analytics
      • Get data frame analytics job configuration info
      • Create a data frame analytics job
      • Delete a data frame analytics job
      • Explain data frame analytics config POSTGET
      • Preview features used by data frame analytics POSTGET
      • Start a data frame analytics job
      • Get data frame analytics job stats
      • Stop data frame analytics jobs
      • Update a data frame analytics job
    • Machine learning trained model
      • Get trained model configuration info
      • Create a trained model
      • Delete an unreferenced trained model
      • Get trained models usage info
      • Create part of a trained model definition
      • Evaluate a trained model
      • Start a trained model deployment
      • Stop a trained model deployment
      • Update a trained model deployment
      • Clear trained model deployment cache
      • Create or update a trained model alias
      • Delete a trained model alias
      • Create a trained model vocabulary
    • Migration
      • Create an index from a source index POSTPUT
      • Reindex legacy backing indices
      • Cancel a migration reindex operation
      • Get the migration reindexing status
      • Get feature migration information
      • Start the feature migration
      • Get deprecation information
    • Node lifecycle
      • Get the shutdown status
      • Prepare a node to be shut down
      • Cancel node shutdown preparations
    • Query rules
      • Get all query rulesets
      • Get a query ruleset
      • Create or update a query ruleset
      • Delete a query ruleset
      • Get a query rule
      • Create or update a query rule
      • Delete a query rule
      • Test a query ruleset
    • Rollup
      • Get the rollup job capabilities Deprecated
      • Get rollup job information Deprecated
      • Create a rollup job Deprecated
      • Delete a rollup job Deprecated
      • Start rollup jobs Deprecated
      • Stop rollup jobs Deprecated
      • Get the rollup index capabilities Deprecated
      • Search rolled-up data Deprecated POSTGET
    • Script
      • Get script contexts
      • Get script languages
      • Run a script POSTGET
      • Get a script or search template
      • Delete a script or search template
      • Create or update a script or search template POSTPUT
    • Search
      • Get the async search status
      • Get async search results
      • Delete an async search
      • Close a point in time
      • Render a search template POSTGET
      • Run a scrolling search POSTGET
      • Clear a scrolling search
      • Run an async search
      • Count search results POSTGET
      • Explain a document match result POSTGET
      • Get the field capabilities POSTGET
      • Run a knn search Deprecated POSTGET
      • Run multiple searches POSTGET
      • Run multiple templated searches POSTGET
      • Search a vector tile POSTGET
      • Open a point in time
      • Evaluate ranked search results POSTGET
      • Run a search POSTGET
      • Run a search with a search template POSTGET
      • Get the search shards POSTGET
      • Get terms in an index POSTGET
    • Search application
      • Get search applications
      • Get search application details
      • Create or update a search application
      • Delete a search application
      • Render a search application query
      • Run a search application search POSTGET
    • Searchable snapshots
      • Get cache statistics
      • Mount a snapshot
      • Clear the searchable snapshots shared cache
      • Get searchable snapshot statistics
    • Security
      • Authenticate a user
      • Find API keys with a query POSTGET
      • Find roles with a query POSTGET
      • Find users with a query POSTGET
      • Get API key information
      • Create an API key POSTPUT
      • Invalidate API keys
      • Bulk update API keys
      • Grant an API key
      • Clear the API key cache
      • Update an API key
      • Create a cross-cluster API key
      • Update a cross-cluster API key
      • Delegate PKI authentication
      • Enroll Kibana
      • Enroll a node
      • Get a token
      • Invalidate a token
      • Authenticate OpenID Connect
      • Logout of OpenID Connect
      • Prepare OpenID connect authentication
      • Create or update application privileges POSTPUT
      • Get builtin privileges
      • Clear the privileges cache
      • Get application privileges
      • Delete application privileges
      • Activate a user profile
      • Check user profile privileges POSTGET
      • Suggest a user profile POSTGET
      • Get a user profile
      • Update user profile data POSTPUT
      • Disable a user profile POSTPUT
      • Enable a user profile POSTPUT
      • Clear the user cache
      • Bulk create or update roles
      • Bulk delete roles
      • Get roles
      • Create or update roles POSTPUT
      • Delete roles
      • Clear the roles cache
      • Get role mappings
      • Create or update role mappings POSTPUT
      • Delete role mappings
      • Authenticate SAML
      • Logout of SAML completely
      • Invalidate SAML
      • Logout of SAML
      • Create SAML service provider metadata
      • Prepare SAML authentication
      • Get service accounts
      • Get service account credentials
      • Create a service account token POSTPUT
      • Delete service account tokens
      • Clear service account token caches
      • Get security index settings
      • Update security index settings
      • Get user privileges
      • Get users
      • Create or update users POSTPUT
      • Delete users
      • Disable users POSTPUT
      • Enable users POSTPUT
      • Change passwords POSTPUT
      • Check user privileges POSTGET
      • Get SSL certificates
    • Snapshot and restore
      • Get snapshot repository information
      • Create or update a snapshot repository POSTPUT
      • Delete snapshot repositories
      • Analyze a snapshot repository
      • Clean up the snapshot repository
      • Verify a snapshot repository
      • Get snapshot information
      • Create a snapshot POSTPUT
      • Delete snapshots
      • Clone a snapshot
      • Restore a snapshot
      • Get the snapshot status
    • Snapshot lifecycle management
      • Run a retention policy
      • Get policy information
      • Create or update a policy
      • Delete a policy
      • Run a policy
      • Start snapshot lifecycle management
      • Get snapshot lifecycle management statistics
      • Get the snapshot lifecycle management status
      • Stop snapshot lifecycle management
    • SQL
      • Get SQL search results POSTGET
      • Delete an async SQL search
      • Get the async SQL search status
      • Get async SQL search results
      • Clear an SQL search cursor
      • Translate SQL into Elasticsearch queries POSTGET
    • Synonyms
      • Get all synonym sets
      • Get a synonym set
      • Create or update a synonym set
      • Delete a synonym set
      • Get a synonym rule
      • Create or update a synonym rule
      • Delete a synonym rule
    • Task management
      • Get all tasks
      • Get task information
      • Cancel a task
    • Text structure
      • Find the structure of a text field
      • Find the structure of text messages POSTGET
      • Find the structure of a text file
      • Test a Grok pattern POSTGET
    • Transform
      • Get node stats
      • Upgrade all transforms
      • Set upgrade_mode for transform indices
      • Get transforms
      • Create a transform
      • Delete a transform
      • Preview a transform POSTGET
      • Reset a transform
      • Schedule a transform to start now
      • Start a transform
      • Get transform stats
      • Stop transforms
      • Update a transform
    • Usage
      • Get information
      • Get usage information
    • Watcher
      • Query watches POSTGET
      • Start the watch service
      • Stop the watch service
      • Get Watcher index settings
      • Update Watcher index settings
      • Get Watcher statistics
      • Get a watch
      • Create or update a watch POSTPUT
      • Delete a watch
      • Run a watch POSTPUT
      • Acknowledge a watch POSTPUT
      • Activate a watch POSTPUT
      • Deactivate a watch POSTPUT
  • Types
    • Query DSL
      • Query
    • Aggregations
      • Aggregation
      • Aggregation result
    • Ingest
      • Processor
Elastic logo
  • Trademarks
  • Terms of Use
  • Privacy
  • Sitemap

© 2026 Elasticsearch B.V. All Rights Reserved.

This content is available in different formats for convenience only. All original licensing terms apply.

Elasticsearch is a trademark of Elasticsearch B.V., registered in the U.S. and in other countries. Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.

Notice at Collection | Your Privacy Choices