elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb
def invalidate_api_key(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]

          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          method = Elasticsearch::API::HTTP_DELETE
          path   = "_security/api_key"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Invalidates one or more API keys.
#
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The api key request to invalidate API key(s) (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html
#
Invalidates one or more API keys.
Invalidates one or more API keys .
def invalidate_api_key(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_security/api_key"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def invalidate_api_key ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone method = Elasticsearch :: API :: HTTP_DELETE path = "_security/api_key" params = { } perform_request ( method , path , params , body , headers ) . body end
Invalidates one or more API keys.
Invalidates one or more API keys .
arguments
:body The api key request to invalidate API key(s) (*Required*)
: body The api key request to invalidate API key ( s ) ( * Required * )
see
None