Skip to content

Commit

Permalink
Update rest-api-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored and github-actions[bot] committed Dec 17, 2024
1 parent fd5d7cf commit e2ba152
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 0 deletions.
84 changes: 84 additions & 0 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,24 @@
],
"response": []
},
"migrate.cancel_reindex": {
"request": [
"Missing request & response"
],
"response": []
},
"migrate.get_reindex_status": {
"request": [
"Missing request & response"
],
"response": []
},
"migrate.reindex": {
"request": [
"Missing request & response"
],
"response": []
},
"ml.delete_trained_model": {
"request": [
"Request: missing json spec query parameter 'timeout'"
Expand Down
28 changes: 28 additions & 0 deletions specification/_json_spec/migrate.cancel_reindex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"migrate.cancel_reindex": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description": "This API returns the status of a migration reindex attempt for a data stream or index"
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_migration/reindex/{index}/_cancel",
"methods": ["POST"],
"parts": {
"index": {
"type": "string",
"description": "The index or data stream name"
}
}
}
]
}
}
}
28 changes: 28 additions & 0 deletions specification/_json_spec/migrate.get_reindex_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"migrate.get_reindex_status": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description": "This API returns the status of a migration reindex attempt for a data stream or index"
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_migration/reindex/{index}/_status",
"methods": ["GET"],
"parts": {
"index": {
"type": "string",
"description": "The index or data stream name"
}
}
}
]
}
}
}
26 changes: 26 additions & 0 deletions specification/_json_spec/migrate.reindex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"migrate.reindex": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"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"
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_migration/reindex",
"methods": ["POST"]
}
]
},
"body": {
"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",
"required": true
}
}
}

0 comments on commit e2ba152

Please sign in to comment.