lib/elasticsearch/api/actions/security/query_api_keys.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/security/query_api_keys.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -26,13 +26,15 @@
#
# @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body From, size, query, sort and search_after
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-query-api-key.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-query-api-key.html
#
def query_api_keys(arguments = {})
+ request_opts = { endpoint: arguments[:endpoint] || "security.query_api_keys" }
+
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
@@ -44,10 +46,10 @@
path = "_security/_query/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