ListShardRecoveries
Queries the data progress list of ongoing and completed shard recoveries. By default, only ongoing shard recovery information is returned.
Operation description
Shard recovery is the process of synchronizing data from a primary shard to a replica shard. After recovery is complete, the replica shard is available for search.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListShardRecoveries |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/cat-recovery HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-7mz293m9a003j**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| activeOnly |
boolean |
No |
Specifies whether to display shard data recovery tracking information. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC47D9 |
| Result |
array<object> |
The returned results. |
|
|
object |
|||
| index |
string |
The index name. |
my-index-000001 |
| sourceHost |
string |
The IP address of the source node. |
192.168.XX.XX |
| sourceNode |
string |
The source node. |
2Kni3dJ |
| filesTotal |
integer |
The total number of files. |
79 |
| bytesPercent |
string |
The data recovery progress. |
80% |
| translogOps |
integer |
The number of translog operations to be recovered. |
12086 |
| translogOpsPercent |
string |
The progress of translog operation recovery. |
80% |
| bytesTotal |
integer |
The total amount of data to be recovered. |
12086 |
| targetHost |
string |
The IP address of the target node. |
192.168.XX.XX |
| targetNode |
string |
The target node. |
YVVKLmW |
| filesPercent |
string |
The file recovery progress. |
80.0% |
| stage |
string |
The stage of data recovery. Valid values:
|
done |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC47D9",
"Result": [
{
"index": "my-index-000001",
"sourceHost": "192.168.XX.XX",
"sourceNode": "2Kni3dJ",
"filesTotal": 79,
"bytesPercent": "80%",
"translogOps": 12086,
"translogOpsPercent": "80%",
"bytesTotal": 12086,
"targetHost": "192.168.XX.XX",
"targetNode": "YVVKLmW",
"filesPercent": "80.0%",
"stage": "done"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.