2017-07-21 15:26:23 -04:00
|
|
|
[role="xpack"]
|
2018-06-21 11:19:23 -04:00
|
|
|
[testenv="basic"]
|
2017-07-21 15:26:23 -04:00
|
|
|
[[migration-api-assistance]]
|
|
|
|
=== Migration Assistance API
|
|
|
|
|
2017-09-11 17:02:23 -04:00
|
|
|
The Migration Assistance API analyzes existing indices in the cluster and
|
|
|
|
returns the information about indices that require some changes before the
|
|
|
|
cluster can be upgraded to the next major version.
|
2017-07-21 15:26:23 -04:00
|
|
|
|
2017-09-11 17:02:23 -04:00
|
|
|
[float]
|
|
|
|
==== Request
|
|
|
|
|
2018-11-28 15:19:33 -05:00
|
|
|
`GET /_migration/assistance` +
|
2017-09-11 17:02:23 -04:00
|
|
|
|
2018-11-28 15:19:33 -05:00
|
|
|
`GET /_migration/assistance/<index_name>`
|
2017-09-11 17:02:23 -04:00
|
|
|
|
|
|
|
//==== Description
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Path Parameters
|
|
|
|
|
|
|
|
`index_name`::
|
|
|
|
(string) Identifier for the index. It can be an index name or a wildcard
|
|
|
|
expression.
|
|
|
|
|
|
|
|
//==== Query Parameters
|
|
|
|
|
|
|
|
//==== Authorization
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Examples
|
|
|
|
|
|
|
|
To see a list of indices that needs to be upgraded or reindexed, submit a GET
|
2018-11-28 15:19:33 -05:00
|
|
|
request to the `/_migration/assistance` endpoint:
|
2017-07-21 15:26:23 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2018-11-28 15:19:33 -05:00
|
|
|
GET /_migration/assistance
|
2017-07-21 15:26:23 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TEST[skip:cannot create an old index in docs test]
|
|
|
|
|
2018-10-23 09:28:25 -04:00
|
|
|
A successful call returns a list of indices that need to be updated or reindexed:
|
2017-07-21 15:26:23 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"indices" : {
|
|
|
|
".watches" : {
|
|
|
|
"action_required" : "upgrade"
|
|
|
|
},
|
|
|
|
".security" : {
|
|
|
|
"action_required" : "upgrade"
|
|
|
|
},
|
|
|
|
"my_old_index": {
|
|
|
|
"action_required" : "reindex"
|
|
|
|
},
|
|
|
|
"my_other_old_index": {
|
|
|
|
"action_required" : "reindex"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// NOTCONSOLE
|
|
|
|
|
2017-09-11 17:02:23 -04:00
|
|
|
To check a particular index or set of indices, specify this index name or mask
|
2018-11-28 15:19:33 -05:00
|
|
|
as the last part of the `/_migration/assistance/index_name` endpoint:
|
2017-07-21 15:26:23 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2018-11-28 15:19:33 -05:00
|
|
|
GET /_migration/assistance/my_*
|
2017-07-21 15:26:23 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TEST[skip:cannot create an old index in docs test]
|
|
|
|
|
2018-10-23 09:28:25 -04:00
|
|
|
A successful call returns a list of indices that needs to be updated or reindexed
|
2017-09-11 17:02:23 -04:00
|
|
|
and match the index specified on the endpoint:
|
2017-07-21 15:26:23 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"indices" : {
|
|
|
|
"my_old_index": {
|
|
|
|
"action_required" : "reindex"
|
|
|
|
},
|
|
|
|
"my_other_old_index": {
|
|
|
|
"action_required" : "reindex"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2017-09-11 17:02:23 -04:00
|
|
|
// NOTCONSOLE
|