Skip to content

Commit b866a01

Browse files
pquentingithub-actions[bot]
authored andcommitted
Update rest-api-spec
1 parent 2737b43 commit b866a01

File tree

8 files changed

+307
-55
lines changed

8 files changed

+307
-55
lines changed

output/schema/schema-serverless.json

Lines changed: 98 additions & 52 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: 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: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
],
4444
"response": []
4545
},
46+
"bulk": {
47+
"request": [
48+
"Request: missing json spec query parameter 'type'"
49+
],
50+
"response": []
51+
},
4652
"capabilities": {
4753
"request": [
4854
"Missing request & response"
@@ -455,7 +461,9 @@
455461
"request": [
456462
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
457463
"Request: query parameter 'expand_wildcards' does not exist in the json spec",
458-
"Request: query parameter 'ignore_unavailable' does not exist in the json spec"
464+
"Request: query parameter 'ignore_unavailable' does not exist in the json spec",
465+
"Request: missing json spec query parameter 'allow_partial_search_results'",
466+
"Request: missing json spec query parameter 'allow_partial_sequence_results'"
459467
],
460468
"response": []
461469
},
@@ -694,6 +702,24 @@
694702
],
695703
"response": []
696704
},
705+
"migrate.cancel_reindex": {
706+
"request": [
707+
"Missing request & response"
708+
],
709+
"response": []
710+
},
711+
"migrate.get_reindex_status": {
712+
"request": [
713+
"Missing request & response"
714+
],
715+
"response": []
716+
},
717+
"migrate.reindex": {
718+
"request": [
719+
"Missing request & response"
720+
],
721+
"response": []
722+
},
697723
"ml.delete_trained_model": {
698724
"request": [
699725
"Request: missing json spec query parameter 'timeout'"

specification/_json_spec/bulk.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
"type": "time",
4747
"description": "Explicit operation timeout"
4848
},
49+
"type": {
50+
"type": "string",
51+
"description": "Default document type for items which don't provide one"
52+
},
4953
"_source": {
5054
"type": "list",
5155
"description": "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request"
@@ -64,11 +68,11 @@
6468
},
6569
"require_alias": {
6670
"type": "boolean",
67-
"description": "If true, the request’s actions must target an index alias. Defaults to false."
71+
"description": "Sets require_alias for all incoming documents. Defaults to unset (false)"
6872
},
6973
"require_data_stream": {
7074
"type": "boolean",
71-
"description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false"
75+
"description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false"
7276
},
7377
"list_executed_pipelines": {
7478
"type": "boolean",

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)