Learn R Programming

elastic (version 1.2.0)

tasks: Elasticsearch tasks endpoints

Description

Elasticsearch tasks endpoints

Usage

tasks(
  conn,
  task_id = NULL,
  nodes = NULL,
  actions = NULL,
  parent_task_id = NULL,
  detailed = FALSE,
  group_by = NULL,
  wait_for_completion = FALSE,
  timeout = NULL,
  raw = FALSE,
  ...
)

tasks_cancel( conn, node_id = NULL, task_id = NULL, nodes = NULL, actions = NULL, parent_task_id = NULL, detailed = FALSE, group_by = NULL, wait_for_completion = FALSE, timeout = NULL, raw = FALSE, ... )

Arguments

conn

an Elasticsearch connection object, see connect()

task_id

a task id

nodes

(character) The nodes

actions

(character) Actions

parent_task_id

(character) A parent task ID

detailed

(character) get detailed results. Default: FALSE

group_by

(character) "nodes" (default, i.e., NULL) or "parents"

wait_for_completion

(logical) wait for completion. Default: FALSE

timeout

(integer) timeout time

raw

If TRUE (default), data is parsed to list. If FALSE, then raw JSON.

...

Curl args passed on to crul::verb-GET or crul::verb-POST

node_id

a node id

References

https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html

Examples

Run this code
# NOT RUN {
x <- connect()

tasks(x)
# tasks(x, parent_task_id = "1234")

# delete a task
# tasks_cancel(x)
# }

Run the code above in your browser using DataLab