lib/elasticsearch/api/actions/security/get_api_key.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/security/get_api_key.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -30,23 +30,25 @@ # @option arguments [String] :realm_name realm name of the user who created this API key to be retrieved # @option arguments [Boolean] :owner flag to query API keys owned by the currently authenticated user # @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-get-api-key.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-get-api-key.html # def get_api_key(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "security.get_api_key" } + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = "_security/api_key" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers) + perform_request(method, path, params, body, headers, request_opts) ) end end end end