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

          body = nil

          arguments = arguments.clone

          _node_id = arguments.delete(:node_id)

          method = Elasticsearch::API::HTTP_GET
          path   = if _node_id
                     "_cat/allocation/#{Utils.__listify(_node_id)}"
                   else
                     "_cat/allocation"
                   end
          params = Utils.process_params(arguments)
          params[:h] = Utils.__listify(params[:h]) if params[:h]

          perform_request(method, path, params, body, headers).body
        end
# Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
#
# @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
# @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
# @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 [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-allocation.html
#
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using .
def allocation(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _node_id = arguments.delete(:node_id)
          method = Elasticsearch::API::HTTP_GET
          path   = if _node_id
                     "_cat/allocation/#{Utils.__listify(_node_id)}"
                   else
                     "_cat/allocation"
                   end
          params = Utils.process_params(arguments)
          params[:h] = Utils.__listify(params[:h]) if params[:h]
          perform_request(method, path, params, body, headers).body
        end
def allocation ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _node_id = arguments . delete ( :node_id ) method = Elasticsearch :: API :: HTTP_GET path = if _node_id "_cat/allocation/#{Utils.__listify(_node_id)}" else "_cat/allocation" end params = Utils . process_params ( arguments ) params [ :h ] = Utils . __listify ( params [ :h ] ) if params [ :h ] perform_request ( method , path , params , body , headers ) . body end
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None