NEST by Elastic and contributors

<PackageReference Include="NEST" Version="7.12.1" />

.NET API 4,860,416 bytes

 CancelTasksDescriptor

Descriptor for Cancel

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

/_tasks/_cancel

/_tasks/{task_id}/_cancel

public CancelTasksDescriptor Actions(string[] actions)

A comma-separated list of actions that should be cancelled. Leave empty to cancel all.

public CancelTasksDescriptor Nodes(string[] nodes)

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

public CancelTasksDescriptor ParentTaskId(string parenttaskid)

Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.

Cancel the task with specified task id (node_id:task_number)

public CancelTasksDescriptor WaitForCompletion(bool? waitforcompletion = true)

Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false