Skip to content

Commit b98c57a

Browse files
authored
[DOCS] Document missing query parms for cat recovery API (#47181) (#47235)
Documents the following query parameters for the /_cat/recovery API: * `active_only` * `detailed` * `index`
1 parent e11c567 commit b98c57a

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

docs/reference/cat/recovery.asciidoc

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ to the <<indices-recovery, indices recovery>> API.
1313

1414
`GET /_cat/recovery/<index>`
1515

16+
`GET /_cat/recovery`
17+
1618

1719
[[cat-recovery-api-desc]]
1820
==== {api-description-title}
@@ -37,14 +39,20 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=index]
3739
[[cat-recovery-query-params]]
3840
==== {api-query-parms-title}
3941

42+
include::{docdir}/rest-api/common-parms.asciidoc[tag=active-only]
43+
4044
include::{docdir}/rest-api/common-parms.asciidoc[tag=bytes]
4145

46+
include::{docdir}/rest-api/common-parms.asciidoc[tag=detailed]
47+
4248
include::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
4349

4450
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-h]
4551

4652
include::{docdir}/rest-api/common-parms.asciidoc[tag=help]
4753

54+
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-query-parm]
55+
4856
include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
4957

5058
include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]

docs/reference/rest-api/common-parms.asciidoc

+23
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11

2+
tag::active-only[]
3+
`active_only`::
4+
(Optional, boolean)
5+
If `true`,
6+
the response only includes ongoing shard recoveries.
7+
Defaults to `false`.
8+
end::active-only[]
9+
210
tag::index-alias[]
311
Comma-separated list or wildcard expression of index alias names
412
used to limit the request.
@@ -75,6 +83,14 @@ tag::default_operator[]
7583
Defaults to `OR`.
7684
end::default_operator[]
7785

86+
tag::detailed[]
87+
`detailed`::
88+
(Optional, boolean)
89+
If `true`,
90+
the response includes detailed information about shard recoveries.
91+
Defaults to `false`.
92+
end::detailed[]
93+
7894
tag::df[]
7995
`df`::
8096
(Optional, string) Field to use as default where no field prefix is
@@ -243,6 +259,13 @@ tag::include-unloaded-segments[]
243259
that are **not** loaded into memory. Defaults to `false`.
244260
end::include-unloaded-segments[]
245261

262+
tag::index-query-parm[]
263+
`index`::
264+
(Optional, string)
265+
Comma-separated list or wildcard expression of index names
266+
used to limit the request.
267+
end::index-query-parm[]
268+
246269
tag::index[]
247270
`<index>`::
248271
(Optional, string) Comma-separated list or wildcard expression of index names

rest-api-spec/src/main/resources/rest-api-spec/api/cat.recovery.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"parts":{
2222
"index":{
2323
"type":"list",
24-
"description":"A comma-separated list of index names to limit the returned information"
24+
"description":"Comma-separated list or wildcard expression of index names to limit the returned information"
2525
}
2626
}
2727
}
@@ -32,6 +32,11 @@
3232
"type":"string",
3333
"description":"a short version of the Accept header, e.g. json, yaml"
3434
},
35+
"active_only":{
36+
"type":"boolean",
37+
"description":"If `true`, the response only includes ongoing shard recoveries",
38+
"default":false
39+
},
3540
"bytes":{
3641
"type":"enum",
3742
"description":"The unit in which to display byte values",
@@ -49,6 +54,11 @@
4954
"pb"
5055
]
5156
},
57+
"detailed":{
58+
"type":"boolean",
59+
"description":"If `true`, the response includes detailed information about shard recoveries",
60+
"default":false
61+
},
5262
"master_timeout":{
5363
"type":"time",
5464
"description":"Explicit operation timeout for connection to master node"
@@ -62,6 +72,10 @@
6272
"description":"Return help information",
6373
"default":false
6474
},
75+
"index":{
76+
"type":"list",
77+
"description":"Comma-separated list or wildcard expression of index names to limit the returned information"
78+
},
6579
"s":{
6680
"type":"list",
6781
"description":"Comma-separated list of column names or column aliases to sort by"

0 commit comments

Comments
 (0)