Method: Elasticsearch::API::Features::Actions#get_features
- Defined in:
- lib/elasticsearch/api/actions/features/get_features.rb
#get_features(arguments = {}) ⇒ Object
Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticsearch/api/actions/features/get_features.rb', line 32 def get_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'features.get_features' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_features' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |