2021-06-22 02:13:40 -04:00
---
layout: default
2022-10-31 12:21:32 -04:00
title: CAT recovery
parent: CAT API
2022-10-27 12:50:39 -04:00
2021-06-22 02:13:40 -04:00
nav_order: 50
has_children: false
2023-05-04 14:22:52 -04:00
redirect_from:
- /opensearch/rest-api/cat/cat-recovery/
2021-06-22 02:13:40 -04:00
---
2022-10-31 12:21:32 -04:00
# CAT recovery
2021-07-26 19:14:22 -04:00
Introduced 1.0
{: .label .label-purple }
2021-06-22 02:13:40 -04:00
2022-10-31 12:21:32 -04:00
The CAT recovery operation lists all completed and ongoing index and shard recoveries.
2021-06-22 02:13:40 -04:00
## Example
```
GET _cat/recovery?v
```
2023-01-30 17:09:38 -05:00
{% include copy-curl.html %}
2021-06-22 02:13:40 -04:00
To see only the recoveries of a specific index, add the index name after your query.
```
GET _cat/recovery/< index > ?v
```
2023-01-30 17:09:38 -05:00
{% include copy-curl.html %}
2021-06-22 02:13:40 -04:00
2023-05-15 17:59:57 -04:00
If you want to get information for more than one index, separate the indexes with commas:
2021-06-22 02:13:40 -04:00
```json
2022-12-13 12:52:53 -05:00
GET _cat/recovery/index1,index2,index3
2021-06-22 02:13:40 -04:00
```
2023-01-30 17:09:38 -05:00
{% include copy-curl.html %}
2021-06-22 02:13:40 -04:00
## Path and HTTP methods
```
GET _cat/recovery
```
## URL parameters
2022-10-31 12:21:32 -04:00
All CAT recovery URL parameters are optional.
2021-06-22 02:13:40 -04:00
2022-10-27 12:50:39 -04:00
In addition to the [common URL parameters ]({{site.url}}{{site.baseurl}}/api-reference/cat/index ), you can specify the following parameters:
2021-06-22 02:13:40 -04:00
Parameter | Type | Description
:--- | :--- | :---
active_only | Boolean | Whether to only include ongoing shard recoveries. Default is false.
bytes | Byte size | Specify the units for byte size. For example, `7kb` or `6gb` . For more information, see [Supported units ]({{site.url}}{{site.baseurl}}/opensearch/units/ ).
detailed | Boolean | Whether to include detailed information about shard recoveries. Default is false.
time | Time | Specify the units for time. For example, `5d` or `7h` . For more information, see [Supported units ]({{site.url}}{{site.baseurl}}/opensearch/units/ ).
## Response
```json
index | shard | time | type | stage | source_host | source_node | target_host | target_node | repository | snapshot | files | files_recovered | files_percent | files_total | bytes | bytes_recovered | bytes_percent | bytes_total | translog_ops | translog_ops_recovered | translog_ops_percent
movies | 0 | 117ms | empty_store | done | n/a | n/a | 172.18.0.4 | odfe-node1 | n/a | n/a | 0 | 0 | 0.0% | 0 | 0 | 0 | 0.0% | 0 | 0 | 0 | 100.0%
movies | 0 | 382ms | peer | done | 172.18.0.4 | odfe-node1 | 172.18.0.3 | odfe-node2 | n/a | n/a | 1 | 1 | 100.0% | 1 | 208 | 208 | 100.0% | 208 | 1 | 1 | 100.0%
```