Query API Keys support for both aggs and aggregations keywords (#107054)

The Query API Key Information endpoint supports aggs since #104895.
But some lang clients actually use the `aggregations` keyword in requests,
as the preferred synonym to `aggs`.
This PR adds support for the `aggregations` request keyword as a synonym
for the existing `aggs` term.

Closes #106839
This commit is contained in:
Albert Zaharovits 2024-04-03 18:33:14 +03:00 committed by GitHub
parent 755226df23
commit 36bcb6b398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 96 additions and 14 deletions

View file

@ -232,7 +232,7 @@ simply mentioning `metadata` (not followed by any dot and sub-field name).
NOTE: You cannot query the role descriptors of an API key.
====
`aggs`::
`aggs` or `aggregations`::
(Optional, object) Any <<search-aggregations,aggregations>> to run over the corpus of returned API keys.
Aggregations and queries work together. Aggregations are computed only on the API keys that match the query.
This supports only a subset of aggregation types, namely: <<search-aggregations-bucket-terms-aggregation,terms>>,