Skip to content

Commit 7cbef4e

Browse files
committed
Add missing indices options to index recovery API (#4954)
The JSON API spec change on the ES side is elastic/elasticsearch#131490 Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit 96e5f2e) # Conflicts: # output/schema/validation-errors.json
1 parent 17d906f commit 7cbef4e

File tree

5 files changed

+118
-2
lines changed

5 files changed

+118
-2
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@
210210
],
211211
"response": []
212212
},
213+
"indices.recovery": {
214+
"request": [
215+
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
216+
"Request: query parameter 'expand_wildcards' does not exist in the json spec",
217+
"Request: query parameter 'ignore_unavailable' does not exist in the json spec"
218+
],
219+
"response": []
220+
},
213221
"ingest.delete_geoip_database": {
214222
"request": [
215223
"Request: query parameter 'master_timeout' does not exist in the json spec",

output/typescript/types.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/recovery/IndicesRecoveryRequest.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { Indices } from '@_types/common'
21+
import { ExpandWildcards, Indices } from '@_types/common'
2222

2323
/**
2424
* Get index recovery information.
@@ -80,5 +80,23 @@ export interface Request extends RequestBase {
8080
* @server_default false
8181
*/
8282
detailed?: boolean
83+
/**
84+
* If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
85+
* This behavior applies even if the request targets other open indices.
86+
* @server_default true
87+
*/
88+
allow_no_indices?: boolean
89+
/**
90+
* Type of index that wildcard patterns can match.
91+
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
92+
* Supports comma-separated values, such as `open,hidden`.
93+
* @server_default open
94+
*/
95+
expand_wildcards?: ExpandWildcards
96+
/**
97+
* If `false`, the request returns an error if it targets a missing or closed index.
98+
* @server_default false
99+
*/
100+
ignore_unavailable?: boolean
83101
}
84102
}

0 commit comments

Comments
 (0)