-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathtasks.cancel.json
49 lines (49 loc) · 1.58 KB
/
tasks.cancel.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"tasks.cancel": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html",
"description": "Cancels a task, if it can be cancelled through an API."
},
"stability": "experimental",
"visibility": "public",
"headers": {
"accept": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_tasks/_cancel",
"methods": ["POST"]
},
{
"path": "/_tasks/{task_id}/_cancel",
"methods": ["POST"],
"parts": {
"task_id": {
"type": "string",
"description": "Cancel the task with specified task id (node_id:task_number)"
}
}
}
]
},
"params": {
"nodes": {
"type": "list",
"description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
},
"actions": {
"type": "list",
"description": "A comma-separated list of actions that should be cancelled. Leave empty to cancel all."
},
"parent_task_id": {
"type": "string",
"description": "Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all."
},
"wait_for_completion": {
"type": "boolean",
"description": "Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false"
}
}
}
}