elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb
# Evicts application privileges from the native application privileges cache.
#
# @option arguments [List] :application A comma-separated list of application names
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html
#
Evicts application privileges from the native application privileges cache.
Evicts application privileges from the native application privileges cache .
def clear_cached_privileges(arguments = {})
          raise ArgumentError, "Required argument 'application' missing" unless arguments[:application]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _application = arguments.delete(:application)
          method = Elasticsearch::API::HTTP_POST
          path   = "_security/privilege/#{Utils.__listify(_application)}/_clear_cache"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def clear_cached_privileges ( arguments = { } ) raise ArgumentError , "Required argument 'application' missing" unless arguments [ :application ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _application = arguments . delete ( :application ) method = Elasticsearch :: API :: HTTP_POST path = "_security/privilege/#{Utils.__listify(_application)}/_clear_cache" params = { } perform_request ( method , path , params , body , headers ) . body end
Evicts application privileges from the native application privileges cache.
Evicts application privileges from the native application privileges cache .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None