elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb
# Evicts tokens from the service account token caches.
#
# @option arguments [String] :namespace An identifier for the namespace
# @option arguments [String] :service An identifier for the service name
# @option arguments [List] :name A comma-separated list of service token names
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html
#
Evicts tokens from the service account token caches.
Evicts tokens from the service account token caches .
def clear_cached_service_tokens(arguments = {})
          raise ArgumentError, "Required argument 'namespace' missing" unless arguments[:namespace]
          raise ArgumentError, "Required argument 'service' missing" unless arguments[:service]
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _namespace = arguments.delete(:namespace)
          _service = arguments.delete(:service)
          _name = arguments.delete(:name)
          method = Elasticsearch::API::HTTP_POST
          path   = "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential/token/#{Utils.__listify(_name)}/_clear_cache"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def clear_cached_service_tokens ( arguments = { } ) raise ArgumentError , "Required argument 'namespace' missing" unless arguments [ :namespace ] raise ArgumentError , "Required argument 'service' missing" unless arguments [ :service ] raise ArgumentError , "Required argument 'name' missing" unless arguments [ :name ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _namespace = arguments . delete ( :namespace ) _service = arguments . delete ( :service ) _name = arguments . delete ( :name ) method = Elasticsearch :: API :: HTTP_POST path = "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential/token/#{Utils.__listify(_name)}/_clear_cache" params = { } perform_request ( method , path , params , body , headers ) . body end
Evicts tokens from the service account token caches.
Evicts tokens from the service account token caches .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None