Sha256: 673987464e83c8fed67ff355ae4a33febb7b2f984f7cde753fdcd2b2b0782f4e
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
module Elasticsearch module API module Indices module Actions # When using the shared storage gateway, manually trigger the snapshot operation. # # @deprecated The shared gateway has been deprecated [https://github.com/elasticsearch/elasticsearch/issues/2458] # # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string # to perform the operation on all indices # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore `missing` ones # (options: none, missing) # # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-gateway-snapshot/ # def snapshot_index(arguments={}) method = 'POST' path = Utils.__pathify( Utils.__listify(arguments[:index]), '_gateway/snapshot' ) params = arguments.select do |k,v| [ :ignore_indices ].include?(k) end # Normalize Ruby 1.8 and Ruby 1.9 Hash#select behaviour params = Hash[params] unless params.is_a?(Hash) body = nil perform_request(method, path, params, body).body end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-api-0.4.0 | lib/elasticsearch/api/actions/indices/snapshot_index.rb |
elasticsearch-api-0.0.2 | lib/elasticsearch/api/actions/indices/snapshot_index.rb |