Query parameters
- actions
string | array[string] A comma-separated list or wildcard expression of actions used to limit the request. For example, you can use
cluser:*
to retrieve all cluster-related tasks. - detailed
boolean If
true
, the response includes detailed information about the running tasks. This information is useful to distinguish tasks from each other but is more costly to run. - group_by
string A key that is used to group tasks in the response. The task lists can be grouped either by nodes or by parent tasks.
Values are
nodes
,parents
, ornone
. - nodes
string | array[string] A comma-separated list of node IDs or names that is used to limit the returned information.
- parent_task_id
string A parent task identifier that is used to limit returned information. To return all tasks, omit this parameter or use a value of
-1
. If the parent task is not found, the API does not return a 404 response code. - timeout
string The period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its information. However, timed out nodes are included in the
node_failures
property.Values are
-1
or0
. - wait_for_completion
boolean If
true
, the request blocks until the operation is complete.
GET _tasks?actions=*search&detailed
resp = client.tasks.list(
actions="*search",
detailed=True,
)
const response = await client.tasks.list({
actions: "*search",
detailed: "true",
});
response = client.tasks.list(
actions: "*search",
detailed: "true"
)
$resp = $client->tasks()->list([
"actions" => "*search",
"detailed" => "true",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_tasks?actions=*search&detailed"
{
"nodes" : {
"oTUltX4IQMOUUVeiohTt8A" : {
"name" : "H5dfFeA",
"transport_address" : "127.0.0.1:9300",
"host" : "127.0.0.1",
"ip" : "127.0.0.1:9300",
"tasks" : {
"oTUltX4IQMOUUVeiohTt8A:464" : {
"node" : "oTUltX4IQMOUUVeiohTt8A",
"id" : 464,
"type" : "transport",
"action" : "indices:data/read/search",
"description" : "indices[test], types[test], search_type[QUERY_THEN_FETCH], source[{\"query\":...}]",
"start_time_in_millis" : 1483478610008,
"running_time_in_nanos" : 13991383,
"cancellable" : true,
"cancelled" : false
}
}
}
}
}