[[reference-security-query_api_keys]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.security.queryApiKeys Find API keys with a query. Get a paginated list of API keys and their information. You can optionally filter the results with a query. {ref}/security-api-query-api-key.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SecurityQueryApiKeysRequest, options?): Promise ---- [discrete] ===== `SecurityQueryApiKeysRequest` [source,ts] ---- interface SecurityQueryApiKeysRequest extends <> { with_limited_by?: boolean with_profile_uid?: boolean typed_keys?: boolean aggregations?: Record /** @alias aggregations */ aggs?: Record query?: SecurityQueryApiKeysApiKeyQueryContainer from?: <> sort?: <> size?: <> search_after?: <> } ---- [discrete] ===== `SecurityQueryApiKeysResponse` [source,ts] ---- interface SecurityQueryApiKeysResponse { total: <> count: <> api_keys: SecurityApiKey[] aggregations?: Record<<>, SecurityQueryApiKeysApiKeyAggregate> } ----