2019-09-06 18:09:57 +02:00
|
|
|
[[cancel-reindex]]
|
|
|
|
=== Cancel reindex API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Cancel reindex</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
2020-03-20 22:33:20 +01:00
|
|
|
experimental[] Cancel reindexes that are waiting for the {es} reindex task to complete. For example, `lastCompletedStep` set to `40`.
|
2019-09-06 18:09:57 +02:00
|
|
|
|
2020-03-20 11:44:35 +01:00
|
|
|
Cancel reindexes that are waiting for the Elasticsearch reindex task to complete. For example, `lastCompletedStep` set to `40`.
|
|
|
|
|
2019-09-06 18:09:57 +02:00
|
|
|
[[cancel-reindex-request]]
|
|
|
|
==== Request
|
|
|
|
|
2020-03-20 22:33:20 +01:00
|
|
|
`POST <kibana host>:<port>/api/upgrade_assistant/reindex/myIndex/cancel`
|
2019-09-06 18:09:57 +02:00
|
|
|
|
|
|
|
[[cancel-reindex-response-codes]]
|
|
|
|
==== Response codes
|
|
|
|
|
|
|
|
`200`::
|
|
|
|
Indicates a successful call.
|
|
|
|
|
|
|
|
[[cancel-reindex-status-example]]
|
|
|
|
==== Example
|
|
|
|
|
|
|
|
The API returns the following:
|
|
|
|
|
2020-03-20 22:33:20 +01:00
|
|
|
[source,sh]
|
2019-09-06 18:09:57 +02:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|