Search::Elasticsearch::Client::8_0::Direct::Tasks(3pm)

Search::Elasticsearch::Client::8_0::Direct::Tasks3pm

A client for accessing the task management api

Version

version 8.12

Overview

This module provides methods to access the Task Management API, such as listing tasks and cancelling tasks.

It does Search::Elasticsearch::Role::Client::Direct.

Methods

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.

Query string parameters:
"actions",
"detailed",
"error_trace",
"group_by",
"human",
"nodes",
"parent_task_id",
"timeout",
"wait_for_completion"

See the task management docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> 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"

See the task management docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> for more information.

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"

See the task management docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> for more information.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Enrico Zimuel <[email protected]>

From libsearch-elasticsearch-perl 8.12-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.