assistance.asciidoc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[migration-api-assistance]]
  4. === Migration Assistance API
  5. The Migration Assistance API analyzes existing indices in the cluster and
  6. returns the information about indices that require some changes before the
  7. cluster can be upgraded to the next major version.
  8. [float]
  9. ==== Request
  10. `GET /_xpack/migration/assistance` +
  11. `GET /_xpack/migration/assistance/<index_name>`
  12. //==== Description
  13. [float]
  14. ==== Path Parameters
  15. `index_name`::
  16. (string) Identifier for the index. It can be an index name or a wildcard
  17. expression.
  18. //==== Query Parameters
  19. //==== Authorization
  20. [float]
  21. ==== Examples
  22. To see a list of indices that needs to be upgraded or reindexed, submit a GET
  23. request to the `/_xpack/migration/assistance` endpoint:
  24. [source,js]
  25. --------------------------------------------------
  26. GET /_xpack/migration/assistance
  27. --------------------------------------------------
  28. // CONSOLE
  29. // TEST[skip:cannot create an old index in docs test]
  30. A successful call returns a list of indices that need to updated or reindexed:
  31. [source,js]
  32. --------------------------------------------------
  33. {
  34. "indices" : {
  35. ".watches" : {
  36. "action_required" : "upgrade"
  37. },
  38. ".security" : {
  39. "action_required" : "upgrade"
  40. },
  41. "my_old_index": {
  42. "action_required" : "reindex"
  43. },
  44. "my_other_old_index": {
  45. "action_required" : "reindex"
  46. }
  47. }
  48. }
  49. --------------------------------------------------
  50. // NOTCONSOLE
  51. To check a particular index or set of indices, specify this index name or mask
  52. as the last part of the `/_xpack/migration/assistance/index_name` endpoint:
  53. [source,js]
  54. --------------------------------------------------
  55. GET /_xpack/migration/assistance/my_*
  56. --------------------------------------------------
  57. // CONSOLE
  58. // TEST[skip:cannot create an old index in docs test]
  59. A successful call returns a list of indices that needs to updated or reindexed
  60. and match the index specified on the endpoint:
  61. [source,js]
  62. --------------------------------------------------
  63. {
  64. "indices" : {
  65. "my_old_index": {
  66. "action_required" : "reindex"
  67. },
  68. "my_other_old_index": {
  69. "action_required" : "reindex"
  70. }
  71. }
  72. }
  73. --------------------------------------------------
  74. // NOTCONSOLE