Skip to content

Commit 448834c

Browse files
[API] Updates security.get_api_key and security.query_api_keys
Adds `with_limited_by` flag parameter (Boolean) to show the limited-by role descriptors of API Keys Co-authored-by: Fernando Briano <[email protected]>
1 parent 0925301 commit 448834c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module Actions
2929
# @option arguments [String] :username user name of the user who created this API key to be retrieved
3030
# @option arguments [String] :realm_name realm name of the user who created this API key to be retrieved
3131
# @option arguments [Boolean] :owner flag to query API keys owned by the currently authenticated user
32+
# @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys
3233
# @option arguments [Hash] :headers Custom HTTP headers
3334
#
3435
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html

elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module Security
2424
module Actions
2525
# Retrieves information for API keys using a subset of query DSL
2626
#
27+
# @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys
2728
# @option arguments [Hash] :headers Custom HTTP headers
2829
# @option arguments [Hash] :body From, size, query, sort and search_after
2930
#
@@ -42,7 +43,7 @@ def query_api_keys(arguments = {})
4243
end
4344

4445
path = "_security/_query/api_key"
45-
params = {}
46+
params = Utils.process_params(arguments)
4647

4748
Elasticsearch::API::Response.new(
4849
perform_request(method, path, params, body, headers)

0 commit comments

Comments
 (0)