Search::Elasticsearch::Client::7_0::Direct::Tasks - A client for accessing the Task Management API
version 7.717
This module provides methods to access the Task Management API, such as listing tasks and cancelling tasks.
It does Search::Elasticsearch::Role::Client::Direct.
list()
$response = $e->tasks->list( task_id => $task_id # optional );
The list() method returns all running tasks or, if a task_id is specified, info about that task.
task_id
Query string parameters: actions, detailed, error_trace, group_by, human, nodes, parent_task_id, timeout, wait_for_completion
actions
detailed
error_trace
group_by
human
nodes
parent_task_id
timeout
wait_for_completion
See the task management docs for more information.
get()
$response = $e->tasks->get( task_id => $task_id # required );
The get() method returns the task with the specified ID.
Query string parameters: error_trace, human, wait_for_completion
cancel()
$response = $e->tasks->cancel( task_id => $task_id # required );
The cancel() method attempts to cancel the specified task_id or multiple tasks.
Query string parameters: actions, error_trace, human, nodes, parent_task_id, timeout
Enrico Zimuel <enrico.zimuel@elastic.co>
This software is Copyright (c) 2022 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Search::Elasticsearch::Client::7_0, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Elasticsearch::Client::7_0
CPAN shell
perl -MCPAN -e shell install Search::Elasticsearch::Client::7_0
For more information on module installation, please visit the detailed CPAN module installation guide.