Skip to content

Commit 5835154

Browse files
pquentingithub-actions[bot]
authored andcommitted
Update rest-api-spec
1 parent 0190dd4 commit 5835154

File tree

6 files changed

+197
-1
lines changed

6 files changed

+197
-1
lines changed

output/schema/schema.json

Lines changed: 84 additions & 0 deletions
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: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@
373373
"request": [
374374
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
375375
"Request: query parameter 'expand_wildcards' does not exist in the json spec",
376-
"Request: query parameter 'ignore_unavailable' does not exist in the json spec"
376+
"Request: query parameter 'ignore_unavailable' does not exist in the json spec",
377+
"Request: missing json spec query parameter 'allow_partial_search_results'",
378+
"Request: missing json spec query parameter 'allow_partial_sequence_results'"
377379
],
378380
"response": []
379381
},
@@ -612,6 +614,24 @@
612614
],
613615
"response": []
614616
},
617+
"migrate.cancel_reindex": {
618+
"request": [
619+
"Missing request & response"
620+
],
621+
"response": []
622+
},
623+
"migrate.get_reindex_status": {
624+
"request": [
625+
"Missing request & response"
626+
],
627+
"response": []
628+
},
629+
"migrate.reindex": {
630+
"request": [
631+
"Missing request & response"
632+
],
633+
"response": []
634+
},
615635
"ml.delete_trained_model": {
616636
"request": [
617637
"Request: missing json spec query parameter 'timeout'"

specification/_json_spec/eql.search.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@
3838
"type": "time",
3939
"description": "Update the time interval in which the results (partial or final) for this search will be available",
4040
"default": "5d"
41+
},
42+
"allow_partial_search_results": {
43+
"type": "boolean",
44+
"description": "Control whether the query should keep running in case of shard failures, and return partial results",
45+
"default": false
46+
},
47+
"allow_partial_sequence_results": {
48+
"type": "boolean",
49+
"description": "Control whether a sequence query should return partial results or no results at all in case of shard failures. This option has effect only if [allow_partial_search_results] is true.",
50+
"default": false
4151
}
4252
},
4353
"body": {
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"migrate.cancel_reindex": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
5+
"description": "This API returns the status of a migration reindex attempt for a data stream or index"
6+
},
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_migration/reindex/{index}/_cancel",
17+
"methods": ["POST"],
18+
"parts": {
19+
"index": {
20+
"type": "string",
21+
"description": "The index or data stream name"
22+
}
23+
}
24+
}
25+
]
26+
}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"migrate.get_reindex_status": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
5+
"description": "This API returns the status of a migration reindex attempt for a data stream or index"
6+
},
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_migration/reindex/{index}/_status",
17+
"methods": ["GET"],
18+
"parts": {
19+
"index": {
20+
"type": "string",
21+
"description": "The index or data stream name"
22+
}
23+
}
24+
}
25+
]
26+
}
27+
}
28+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"migrate.reindex": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
5+
"description": "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"
6+
},
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_migration/reindex",
17+
"methods": ["POST"]
18+
}
19+
]
20+
},
21+
"body": {
22+
"description": "The body contains the fields `mode` and `source.index, where the only mode currently supported is `upgrade`, and the `source.index` must be a data stream name",
23+
"required": true
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)