Class LowLevelTasksNamespace
Tasks APIs.
Not intended to be instantiated directly. Use the Tasks property on IOpenSearchLowLevelClient.
Inherited Members
Namespace: OpenSearch.Net.Specification.TasksApi
Assembly: OpenSearch.Net.dll
Syntax
public class LowLevelTasksNamespace : NamespacedClientProxy
Methods
| Edit this page View SourceCancelAsync<TResponse>(CancelTasksRequestParameters, CancellationToken)
POST on /_tasks/_cancel
https://opensearch.org/docs/latest/api-reference/tasks/#task-canceling
Declaration
public Task<TResponse> CancelAsync<TResponse>(CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
CancelTasksRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
CancelAsync<TResponse>(string, CancelTasksRequestParameters, CancellationToken)
POST on /_tasks/{task_id}/_cancel
https://opensearch.org/docs/latest/api-reference/tasks/#task-canceling
Declaration
public Task<TResponse> CancelAsync<TResponse>(string taskId, CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | taskId | ID of the task. |
CancelTasksRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
Cancel<TResponse>(CancelTasksRequestParameters)
POST on /_tasks/_cancel
https://opensearch.org/docs/latest/api-reference/tasks/#task-canceling
Declaration
public TResponse Cancel<TResponse>(CancelTasksRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
CancelTasksRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
Cancel<TResponse>(string, CancelTasksRequestParameters)
POST on /_tasks/{task_id}/_cancel
https://opensearch.org/docs/latest/api-reference/tasks/#task-canceling
Declaration
public TResponse Cancel<TResponse>(string taskId, CancelTasksRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | taskId | ID of the task. |
CancelTasksRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
GetTaskAsync<TResponse>(string, GetTaskRequestParameters, CancellationToken)
GET on /_tasks/{task_id}
https://opensearch.org/docs/latest/api-reference/tasks/
Declaration
public Task<TResponse> GetTaskAsync<TResponse>(string taskId, GetTaskRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | taskId | ID of the task. |
GetTaskRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
GetTask<TResponse>(string, GetTaskRequestParameters)
GET on /_tasks/{task_id}
https://opensearch.org/docs/latest/api-reference/tasks/
Declaration
public TResponse GetTask<TResponse>(string taskId, GetTaskRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | taskId | ID of the task. |
GetTaskRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
ListAsync<TResponse>(ListTasksRequestParameters, CancellationToken)
GET on /_tasks
https://opensearch.org/docs/latest/api-reference/tasks/
Declaration
public Task<TResponse> ListAsync<TResponse>(ListTasksRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
ListTasksRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
List<TResponse>(ListTasksRequestParameters)
GET on /_tasks
https://opensearch.org/docs/latest/api-reference/tasks/
Declaration
public TResponse List<TResponse>(ListTasksRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
ListTasksRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |