Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPEC] Separated the "Upgrade Index" API into two methods
* `get_upgrade` => `GET _upgrade` -- Return the status * `upgrade` => `POST _upgrade` -- Perform the operation Original specification part of c021f22. Related: #7884, #7922
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"indices.get_upgrade": { | ||
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-upgrade.html", | ||
"methods": ["GET"], | ||
"url": { | ||
"path": "/_upgrade", | ||
"paths": ["/_upgrade", "/{index}/_upgrade"], | ||
"parts": { | ||
"index": { | ||
"type" : "list", | ||
"description" : "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices" | ||
} | ||
}, | ||
"params": { | ||
"ignore_unavailable": { | ||
"type" : "boolean", | ||
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)" | ||
}, | ||
"allow_no_indices": { | ||
"type" : "boolean", | ||
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)" | ||
}, | ||
"expand_wildcards": { | ||
"type" : "enum", | ||
"options" : ["open","closed"], | ||
"default" : "open", | ||
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters