mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
The endpoint `_snapshottable_features` is long and implies incorrect things about this API - it is used not just for snapshots, but also for the upcoming reset API. Following discussions on the team, this commit changes the endpoint to `_features` and removes the connection between this API and snapshots, as snapshots are not the only use for the output of this API.
56 lines
1.6 KiB
Text
56 lines
1.6 KiB
Text
[[get-features-api]]
|
|
=== Get Features API
|
|
++++
|
|
<titleabbrev>Get features</titleabbrev>
|
|
++++
|
|
|
|
Gets a list of features which can be included in snapshots using the
|
|
<<create-snapshot-api-feature-states,`feature_states` field>> when creating a
|
|
snapshot.
|
|
|
|
[source,console]
|
|
-----------------------------------
|
|
GET /_features
|
|
-----------------------------------
|
|
|
|
[[get-features-api-request]]
|
|
==== {api-request-title}
|
|
|
|
`GET /_features`
|
|
|
|
|
|
[[get-features-api-desc]]
|
|
==== {api-description-title}
|
|
|
|
You can use the get features API to determine which feature states
|
|
to include when <<snapshots-take-snapshot,taking a snapshot>>. By default, all
|
|
feature states are included in a snapshot if that snapshot includes the global
|
|
state, or none if it does not.
|
|
|
|
A feature state includes one or more system indices necessary for a given
|
|
feature to function. In order to ensure data integrity, all system indices that
|
|
comprise a feature state are snapshotted and restored together.
|
|
|
|
The features listed by this API are a combination of built-in features and
|
|
features defined by plugins. In order for a feature's state to be listed in this
|
|
API and recognized as a valid feature state by the create snapshot API, the
|
|
plugin which defines that feature must be installed on the master node.
|
|
|
|
==== {api-examples-title}
|
|
|
|
[source,console-result]
|
|
----
|
|
{
|
|
"features": [
|
|
{
|
|
"name": "tasks",
|
|
"description": "Manages task results"
|
|
},
|
|
{
|
|
"name": "kibana",
|
|
"description": "Manages Kibana configuration and reports"
|
|
}
|
|
]
|
|
}
|
|
----
|
|
// TESTRESPONSE[skip:response differs between default distro and OSS]
|