Reindex data stream cancel API
editReindex data stream cancel API
editThese APIs are designed for indirect use by Kibana’s Upgrade Assistant. We strongly recommend you use the Upgrade Assistant to upgrade from 7.17 to 8.18.0. For upgrade instructions, refer to Upgrading to Elastic 8.18.0.
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
.
resp = client.indices.cancel_migrate_reindex( index="my-data-stream", ) print(resp)
POST _migration/reindex/my-data-stream/_cancel
Request
editGET /_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.