123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- [role="xpack"]
- [[migration-api-feature-upgrade]]
- === Feature Upgrade APIs
- ++++
- <titleabbrev>Feature upgrade APIs</titleabbrev>
- ++++
- IMPORTANT: Use this API to check for system features that need to be upgraded before
- a major version upgrade. You should run it on the last minor version of the
- major version you are upgrading from.
- The feature upgrade APIs are to be used to retrieve information about system features
- that have to be upgraded before a cluster can be migrated to the next major version number,
- and to trigger an automated system upgrade that might potentially involve downtime for
- {es} system features.
- [[feature-upgrade-api-request]]
- ==== {api-request-title}
- `GET /migration/system_features`
- [[feature-upgrade-api-prereqs]]
- ==== {api-prereq-title}
- * If the {es} {security-features} are enabled, you must have the `manage`
- <<privileges-list-cluster,cluster privilege>> to use this API.
- [[feature-upgrade-api-example]]
- ==== {api-examples-title}
- To see the list of system features needing upgrades, submit a GET request to the
- `_migration/system_features` endpoint:
- [source,console]
- --------------------------------------------------
- GET /_migration/system_features
- --------------------------------------------------
- Example response:
- [source,console-result]
- --------------------------------------------------
- {
- "features" : [
- {
- "feature_name" : "async_search",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "enrich",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "fleet",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "geoip",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "kibana",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "logstash_management",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "machine_learning",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "searchable_snapshots",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "security",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "tasks",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "transform",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- },
- {
- "feature_name" : "watcher",
- "minimum_index_version" : "8.0.0",
- "migration_status" : "NO_MIGRATION_NEEDED",
- "indices" : [ ]
- }
- ],
- "migration_status" : "NO_MIGRATION_NEEDED"
- }
- --------------------------------------------------
- // TESTRESPONSE[s/"minimum_index_version" : "8.0.0"/"minimum_index_version" : $body.$_path/]
- This response tells us that Elasticsearch security needs its internal
- indices upgraded before we can upgrade the cluster to 8.0.
- To perform the required upgrade, submit a POST request to the same endpoint.
- [source,console]
- --------------------------------------------------
- POST /_migration/system_features
- --------------------------------------------------
- Example response:
- [source,console-result]
- --------------------------------------------------
- {
- "accepted" : true,
- "features" : [
- {
- "feature_name" : "security"
- }
- ]
- }
- --------------------------------------------------
- // TESTRESPONSE[skip: can't actually upgrade system indices in these tests]
- This tells us that the security index is being upgraded. To check the
- overall status of the upgrade, call the endpoint with GET.
|