Class GetTaskDescriptor
Descriptor for GetTask
https://opensearch.org/docs/latest/api-reference/tasks/
Inheritance
GetTaskDescriptor
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class GetTaskDescriptor : RequestDescriptorBase<GetTaskDescriptor, GetTaskRequestParameters, IGetTaskRequest>, IDescriptor, IGetTaskRequest, IRequest<GetTaskRequestParameters>, IRequest
Constructors
| Edit this page View SourceGetTaskDescriptor()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected GetTaskDescriptor()
GetTaskDescriptor(TaskId)
/_tasks/{task_id}
Declaration
public GetTaskDescriptor(TaskId taskId)
Parameters
Type | Name | Description |
---|---|---|
TaskId | taskId | this parameter is required |
Methods
| Edit this page View SourceTimeout(Time)
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Declaration
public GetTaskDescriptor Timeout(Time timeout)
Parameters
Type | Name | Description |
---|---|---|
Time | timeout |
Returns
Type | Description |
---|---|
GetTaskDescriptor |
WaitForCompletion(bool?)
If true
, the request blocks until the task has completed.
Declaration
public GetTaskDescriptor WaitForCompletion(bool? waitforcompletion = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | waitforcompletion |
Returns
Type | Description |
---|---|
GetTaskDescriptor |