New

The executive guide to generative AI

Read more

Reindex data stream cancel API

edit

Reindex data stream cancel API

edit

These APIs are designed for indirect use by Kibana’s Upgrade Assistant. We strongly recommend you use the Upgrade Assistant to upgrade from 8.18 to 9.0.0-beta1. For upgrade instructions, refer to Upgrading to Elastic 9.0.0-beta1.

Cancels a running data stream reindex task which was started by the data stream reindex API. Any backing indices that have already been reindexed and swapped into the data stream will remain in the data stream. Only backing indices which are currently being reindexed, or pending backing indices which are still waiting to be reindexed, will be cancelled. Once a data stream reindex task is cancelled it will no longer be accessible through the status API. If a reindex task is not currently running this API will return resource_not_found_exception.

POST _migration/reindex/my-data-stream/_cancel

Request

edit

GET /_migration/reindex/<data-stream>/_cancel

Prerequisites

edit
  • If the Elasticsearch security features are enabled, you must have the manage index privilege for the data stream.

Path parameters

edit
<data-stream>
(Required, string) Name of data stream to cancel reindexing.
Was this helpful?
Feedback