Get service accounts
- GET /_security/service/{namespace}/{service}
- GET /_security/service/{namespace}
- GET /_security/service
Get a list of service accounts that match the provided path parameters.
NOTE: Currently, only the elastic/fleet-server service account is available.
- Cluster privileges:
manage_service_account
Path Parameters
-
namespacestringoptional -
The name of the namespace. Omit this parameter to retrieve information about all service accounts. If you omit this parameter, you must also omit the
serviceparameter.Leave it out to use
/_security/service. -
servicestringoptional -
The service name. Omit this parameter to retrieve information about all service accounts that belong to the specified
namespace.Leave it out to use
/_security/service.
Response
application/json
Response Type: map string to RoleDescriptorWrapper