--- layout: default title: CAT tasks parent: CAT APIs nav_order: 70 has_children: false redirect_from: - /opensearch/rest-api/cat/cat-tasks/ --- # CAT Tasks API **Introduced 1.0** {: .label .label-purple } The CAT tasks operation lists the progress of all tasks currently running on your cluster. ## Endpoints ```json GET /_cat/tasks ``` ## Query parameters The following table lists the available query parameters. All query parameters are optional. | Parameter | Data type | Description | Default | | :--- | :--- | :--- | :--- | | `actions` | List | The task action names used to limit the response. | N/A | | `detailed` | Boolean | If `true`, the response includes detailed information about shard recoveries. | `false` | | `format` | String | A short version of the `Accept` header, such as `json` or `yaml`.
Valid values are: `cbor`, `json`, `smile`, `text`, and `yaml`. | `text` | | `h` | List | A comma-separated list of column names to display. | N/A | | `help` | Boolean | Returns help information. | `false` | | `limit` | Integer | The maximum number of rows to return. Must be greater than 0. Applied after sorting (`s`). | N/A | | `nodes` | List | A comma-separated list of node IDs or names used to limit the returned information. Use `_local` to return information from the node to which you're connecting, specify a specific node from which to get information, or keep the parameter empty to get information from all nodes. | N/A | | `parent_task_id` | String | The parent task identifier, which is used to limit the response. | N/A | | `s` | List | A comma-separated list of column names or column aliases to sort by. | N/A | | `time` | String | Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units]({{site.url}}{{site.baseurl}}/api-reference/units/).
Valid values are: `nanos`, `micros`, `ms`, `s`, `m`, `h`, and `d`. | N/A | | `v` | Boolean | Enables verbose mode, which displays column headers. | `false` | ## Example request The following example request lists all tasks in progress: {% capture step1_rest %} GET /_cat/tasks?v {% endcapture %} {% capture step1_python %} response = client.cat.tasks( params = { "v": "true" } ) {% endcapture %} {% include code-block.html rest=step1_rest python=step1_python %} ## Example response ```json action | task_id | parent_task_id | type | start_time | timestamp | running_time | ip | node cluster:monitor/tasks/lists | 1vo54NuxSxOrbPEYdkSF0w:168062 | - | transport | 1624337809471 | 04:56:49 | 489.5ms | 172.18.0.4 | odfe-node1 ``` ## Required permissions If you use the Security plugin, make sure you have the appropriate permissions: `cluster:monitor/tasks/list`.