[[reference-security-get_service_accounts]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.getServiceAccounts]] === client.security.getServiceAccounts Get service accounts. Get a list of service accounts that match the provided path parameters. {ref}/security-api-get-service-accounts.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SecurityGetServiceAccountsRequest, options?): Promise ---- [discrete] ==== Request [pass] ++++
++++
interface SecurityGetServiceAccountsRequest extends <> {
  namespace?: <>
  service?: <>
}

[pass]
++++
++++ [discrete] ==== Response [pass] ++++
++++
type SecurityGetServiceAccountsResponse = Record

[pass]
++++
++++