Skip to content

Commit 0e6502d

Browse files
pquentingithub-actions[bot]
authored andcommitted
Update rest-api-spec
1 parent 2aa04ec commit 0e6502d

File tree

5 files changed

+124
-7
lines changed

5 files changed

+124
-7
lines changed

output/schema/schema.json

Lines changed: 56 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: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
},
5959
"bulk": {
6060
"request": [
61-
"Request: missing json spec query parameter 'type'",
6261
"Request: missing json spec query parameter 'require_data_stream'",
6362
"Request: missing json spec query parameter 'list_executed_pipelines'"
6463
],
@@ -726,6 +725,18 @@
726725
"type_alias definition _global.mget:ResponseItem / union_of / instance_of / Generics / instance_of - No type definition for '_global.mget.ResponseItem:TDocument'"
727726
]
728727
},
728+
"migrate.get_reindex_status": {
729+
"request": [
730+
"Missing request & response"
731+
],
732+
"response": []
733+
},
734+
"migrate.reindex": {
735+
"request": [
736+
"Missing request & response"
737+
],
738+
"response": []
739+
},
729740
"ml.delete_trained_model": {
730741
"request": [
731742
"Request: missing json spec query parameter 'timeout'"

specification/_json_spec/bulk.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
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-
},
5349
"_source": {
5450
"type": "list",
5551
"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"
@@ -68,11 +64,11 @@
6864
},
6965
"require_alias": {
7066
"type": "boolean",
71-
"description": "Sets require_alias for all incoming documents. Defaults to unset (false)"
67+
"description": "If true, the request’s actions must target an index alias. Defaults to false."
7268
},
7369
"require_data_stream": {
7470
"type": "boolean",
75-
"description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false"
71+
"description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false"
7672
},
7773
"list_executed_pipelines": {
7874
"type": "boolean",
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)