elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb
def snapshots(arguments = {})
          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _repository = arguments.delete(:repository)

          method = Elasticsearch::API::HTTP_GET
          path   = if _repository
                     "_cat/snapshots/#{Utils.__listify(_repository)}"
                   else
                     "_cat/snapshots"
                   end
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Returns all snapshots in a specific repository.
#
# @option arguments [List] :repository Name of repository from which to fetch the snapshot information
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
# @option arguments [Boolean] :ignore_unavailable Set to true to ignore unavailable snapshots
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [List] :h Comma-separated list of column names to display
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos)
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html
#
Returns all snapshots in a specific repository.
Returns all snapshots in a specific repository .
def snapshots(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _repository = arguments.delete(:repository)
          method = Elasticsearch::API::HTTP_GET
          path   = if _repository
                     "_cat/snapshots/#{Utils.__listify(_repository)}"
                   else
                     "_cat/snapshots"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def snapshots ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _repository = arguments . delete ( :repository ) method = Elasticsearch :: API :: HTTP_GET path = if _repository "_cat/snapshots/#{Utils.__listify(_repository)}" else "_cat/snapshots" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Returns all snapshots in a specific repository.
Returns all snapshots in a specific repository .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None