|
@@ -415,9 +415,10 @@ With the task id you can look up the task directly:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
-GET /_tasks/taskId:1
|
|
|
+GET /_tasks/task_id
|
|
|
--------------------------------------------------
|
|
|
// CONSOLE
|
|
|
+// TEST[s/task_id/node_id:1/]
|
|
|
// TEST[catch:missing]
|
|
|
|
|
|
The advantage of this API is that it integrates with `wait_for_completion=false`
|
|
@@ -436,9 +437,10 @@ Any Update By Query can be canceled using the <<tasks,Task Cancel API>>:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
-POST _tasks/task_id:1/_cancel
|
|
|
+POST _tasks/task_id/_cancel
|
|
|
--------------------------------------------------
|
|
|
// CONSOLE
|
|
|
+// TEST[s/task_id/node_id:1/]
|
|
|
|
|
|
The `task_id` can be found using the tasks API above.
|
|
|
|
|
@@ -455,9 +457,10 @@ using the `_rethrottle` API:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
-POST _update_by_query/task_id:1/_rethrottle?requests_per_second=-1
|
|
|
+POST _update_by_query/task_id/_rethrottle?requests_per_second=-1
|
|
|
--------------------------------------------------
|
|
|
// CONSOLE
|
|
|
+// TEST[s/task_id/node_id:1/]
|
|
|
|
|
|
The `task_id` can be found using the tasks API above.
|
|
|
|