Sha256: 87c83570f30ac368bd67b5536805ed98e135df45a1fbf706916ec97f01b79e86

Contents?: true

Size: 810 Bytes

Versions: 10

Compression:

Stored size: 810 Bytes

Contents

module Elasticsearch
  module XPack
    module API
      module Security
        module Actions

          # Clears the internal caches for specified roles
          #
          # @option arguments [String] :name Role name (*Required*)
          #
          # @see https://www.elastic.co/guide/en/x-pack/current/security-api-roles.html#security-api-clear-role-cache
          #
          def clear_cached_roles(arguments={})
            raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]

            method = Elasticsearch::API::HTTP_PUT
            path   = "_xpack/security/role/#{arguments[:name]}/_clear_cache"
            params = {}
            body   = nil

            perform_request(method, path, params, body).body
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
elasticsearch-xpack-6.8.1 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-6.8.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-6.3.1 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-6.3.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-6.2.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-6.1.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-6.0.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-5.5.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-5.0.0 lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
elasticsearch-xpack-0.1.0.pre lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb