Skip to content

Commit e5b53be

Browse files
authored
Add missing query params to index recovery API spec (#131490) (#131494)
This PR adds the missing ignore_unavailable, allow_no_indices and expand_wildcards query parameters.
1 parent 2ff72b0 commit e5b53be

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,28 @@
4141
"type":"boolean",
4242
"description":"Display only those recoveries that are currently on-going",
4343
"default":false
44+
},
45+
"ignore_unavailable":{
46+
"type":"boolean",
47+
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)",
48+
"default":false
49+
},
50+
"allow_no_indices":{
51+
"type":"boolean",
52+
"description":"Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)",
53+
"default":true
54+
},
55+
"expand_wildcards":{
56+
"type":"enum",
57+
"options":[
58+
"open",
59+
"closed",
60+
"hidden",
61+
"none",
62+
"all"
63+
],
64+
"default":"open",
65+
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
4466
}
4567
}
4668
}

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.recovery/10_basic.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
indices.recovery:
1818
index: [test_1]
1919
human: true
20+
ignore_unavailable: false
21+
allow_no_indices: true
22+
expand_wildcards: open
2023

2124
- match: { test_1.shards.0.type: "EMPTY_STORE" }
2225
- match: { test_1.shards.0.stage: "DONE" }

0 commit comments

Comments
 (0)