Class CancelTasksDescriptor
Descriptor for Cancel
https://opensearch.org/docs/latest/api-reference/tasks/#task-canceling
Inheritance
CancelTasksDescriptor
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class CancelTasksDescriptor : RequestDescriptorBase<CancelTasksDescriptor, CancelTasksRequestParameters, ICancelTasksRequest>, IDescriptor, ICancelTasksRequest, IRequest<CancelTasksRequestParameters>, IRequest
Constructors
| Edit this page View SourceCancelTasksDescriptor()
/_tasks/_cancel
Declaration
public CancelTasksDescriptor()
CancelTasksDescriptor(TaskId)
/_tasks/{task_id}/_cancel
Declaration
public CancelTasksDescriptor(TaskId taskId)
Parameters
Type | Name | Description |
---|---|---|
TaskId | taskId | Optional, accepts null |
Methods
| Edit this page View SourceActions(params string[])
Comma-separated list or wildcard expression of actions used to limit the request.
Declaration
public CancelTasksDescriptor Actions(params string[] actions)
Parameters
Type | Name | Description |
---|---|---|
string[] | actions |
Returns
Type | Description |
---|---|
CancelTasksDescriptor |
Nodes(params string[])
Comma-separated list of node IDs or names used to limit the request.
Declaration
public CancelTasksDescriptor Nodes(params string[] nodes)
Parameters
Type | Name | Description |
---|---|---|
string[] | nodes |
Returns
Type | Description |
---|---|
CancelTasksDescriptor |
ParentTaskId(string)
Parent task ID used to limit the tasks.
Declaration
public CancelTasksDescriptor ParentTaskId(string parenttaskid)
Parameters
Type | Name | Description |
---|---|---|
string | parenttaskid |
Returns
Type | Description |
---|---|
CancelTasksDescriptor |
TaskId(TaskId)
ID of the task.
Declaration
public CancelTasksDescriptor TaskId(TaskId taskId)
Parameters
Type | Name | Description |
---|---|---|
TaskId | taskId |
Returns
Type | Description |
---|---|
CancelTasksDescriptor |
WaitForCompletion(bool?)
Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false.
Declaration
public CancelTasksDescriptor WaitForCompletion(bool? waitforcompletion = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | waitforcompletion |
Returns
Type | Description |
---|---|
CancelTasksDescriptor |