assistance.asciidoc 2.2 KB

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