feature-migration.asciidoc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. [role="xpack"]
  2. [[feature-migration-api]]
  3. === Feature migration APIs
  4. ++++
  5. <titleabbrev>Feature migration</titleabbrev>
  6. ++++
  7. .New API reference
  8. [sidebar]
  9. --
  10. For the most up-to-date API details, refer to {api-es}/group/endpoint-migration[Migration APIs].
  11. --
  12. include::{es-ref-dir}/migration/apis/shared-migration-apis-tip.asciidoc[]
  13. Version upgrades sometimes require changes to how features store configuration
  14. information and data in system indices. The feature migration APIs enable you to
  15. see what features require changes, initiate the automatic migration process, and
  16. check migration status.
  17. Some functionality might be temporarily unavailable during the migration
  18. process.
  19. [[feature-migration-api-request]]
  20. ==== {api-request-title}
  21. `GET /_migration/system_features`
  22. `POST /_migration/system_features`
  23. [[feature-migration-api-prereqs]]
  24. ==== {api-prereq-title}
  25. * If the {es} {security-features} are enabled, you must have the `manage`
  26. <<privileges-list-cluster,cluster privilege>> to use this API.
  27. [[feature-migration-api-desc]]
  28. ==== {api-description-title}
  29. Submit a GET request to the `_migration/system_features` endpoint to see what
  30. features need to be migrated and the status of any migrations that are in
  31. progress.
  32. Submit a POST request to the endpoint to start the migration process.
  33. [[feature-migration-api-example]]
  34. ==== {api-examples-title}
  35. When you submit a GET request to the `_migration/system_features` endpoint, the
  36. response indicates the status of any features that need to be migrated.
  37. [source,console]
  38. --------------------------------------------------
  39. GET /_migration/system_features
  40. --------------------------------------------------
  41. Example response:
  42. [source,console-result]
  43. --------------------------------------------------
  44. {
  45. "features" : [
  46. {
  47. "feature_name" : "async_search",
  48. "minimum_index_version" : "8100099",
  49. "migration_status" : "NO_MIGRATION_NEEDED",
  50. "indices" : [ ]
  51. },
  52. {
  53. "feature_name" : "enrich",
  54. "minimum_index_version" : "8100099",
  55. "migration_status" : "NO_MIGRATION_NEEDED",
  56. "indices" : [ ]
  57. },
  58. {
  59. "feature_name" : "ent_search",
  60. "minimum_index_version" : "8100099",
  61. "migration_status" : "NO_MIGRATION_NEEDED",
  62. "indices" : [ ]
  63. },
  64. {
  65. "feature_name" : "fleet",
  66. "minimum_index_version" : "8100099",
  67. "migration_status" : "NO_MIGRATION_NEEDED",
  68. "indices" : [ ]
  69. },
  70. {
  71. "feature_name" : "geoip",
  72. "minimum_index_version" : "8100099",
  73. "migration_status" : "NO_MIGRATION_NEEDED",
  74. "indices" : [ ]
  75. },
  76. {
  77. "feature_name" : "kibana",
  78. "minimum_index_version" : "8100099",
  79. "migration_status" : "NO_MIGRATION_NEEDED",
  80. "indices" : [ ]
  81. },
  82. {
  83. "feature_name" : "logstash_management",
  84. "minimum_index_version" : "8100099",
  85. "migration_status" : "NO_MIGRATION_NEEDED",
  86. "indices" : [ ]
  87. },
  88. {
  89. "feature_name" : "machine_learning",
  90. "minimum_index_version" : "8100099",
  91. "migration_status" : "NO_MIGRATION_NEEDED",
  92. "indices" : [ ]
  93. },
  94. {
  95. "feature_name" : "searchable_snapshots",
  96. "minimum_index_version" : "8100099",
  97. "migration_status" : "NO_MIGRATION_NEEDED",
  98. "indices" : [ ]
  99. },
  100. {
  101. "feature_name" : "security",
  102. "minimum_index_version" : "8100099",
  103. "migration_status" : "NO_MIGRATION_NEEDED",
  104. "indices" : [ ]
  105. },
  106. {
  107. "feature_name" : "synonyms",
  108. "minimum_index_version" : "8100099",
  109. "migration_status" : "NO_MIGRATION_NEEDED",
  110. "indices" : [ ]
  111. },
  112. {
  113. "feature_name" : "tasks",
  114. "minimum_index_version" : "8100099",
  115. "migration_status" : "NO_MIGRATION_NEEDED",
  116. "indices" : [ ]
  117. },
  118. {
  119. "feature_name" : "transform",
  120. "minimum_index_version" : "8100099",
  121. "migration_status" : "NO_MIGRATION_NEEDED",
  122. "indices" : [ ]
  123. },
  124. {
  125. "feature_name" : "watcher",
  126. "minimum_index_version" : "8100099",
  127. "migration_status" : "NO_MIGRATION_NEEDED",
  128. "indices" : [ ]
  129. }
  130. ],
  131. "migration_status" : "NO_MIGRATION_NEEDED"
  132. }
  133. --------------------------------------------------
  134. // TESTRESPONSE[skip:"AwaitsFix https://github.com/elastic/elasticsearch/issues/97780]
  135. When you submit a POST request to the `_migration/system_features` endpoint to
  136. start the migration process, the response indicates what features will be
  137. migrated.
  138. [source,console]
  139. --------------------------------------------------
  140. POST /_migration/system_features
  141. --------------------------------------------------
  142. Example response:
  143. [source,console-result]
  144. --------------------------------------------------
  145. {
  146. "accepted" : true,
  147. "features" : [
  148. {
  149. "feature_name" : "security" <1>
  150. }
  151. ]
  152. }
  153. --------------------------------------------------
  154. // TESTRESPONSE[skip: can't actually upgrade system indices in these tests]
  155. <1> {es} security will be migrated before the cluster is upgraded.
  156. Subsequent GET requests will return the status of the migration process.