extends |
AbstractNamespace |
---|
Class TasksNamespace
NOTE: This file is autogenerated using util/GenerateEndpoints.php
Methods | ||||
---|---|---|---|---|
public
|
cancel(array $params = []): array
Cancels a task, if it can be cancelled through an API.
Cancels a task, if it can be cancelled through an API. $params['task_id'] = (string) The task ID.
$params['actions'] = (any) A comma-separated list of actions that should be returned. Keep empty to return all.
$params['nodes'] = (array) A comma-separated list of node IDs or names used to limit the returned information. Use Parameters
|
# | ||
public
|
get(array $params = []): array
Returns information about a task.
Returns information about a task. $params['task_id'] = (string) The task ID.
$params['timeout'] = (string) The amount of time to wait for a response.
$params['wait_for_completion'] = (boolean) Waits for the matching task to complete. When Parameters
|
# | ||
public
|
list(array $params = []): array
Returns a list of tasks.
Returns a list of tasks. $params['actions'] = (any) A comma-separated list of actions that should be returned. Keep empty to return all.
$params['detailed'] = (boolean) When Parameters
|
# | ||
public
|
tasksList(array $params = [])
Proxy function to list() to prevent BC break since 7.4.0
Proxy function to list() to prevent BC break since 7.4.0 |
# |
Methods inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
__construct(), extractArgument(), performRequest() |
Properties inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
$transport, $httpTransport, $endpointFactory, $endpoints |