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.
Built-in service accounts ship with Elasticsearch in the elastic namespace; user-managed service accounts are created with the put user-managed service account API.
Note
When type is omitted, a request without a namespace reports built-in accounts only, which preserves the response of a whole-cluster listing.
A request scoped to a namespace reports both kinds, so an account you created is found without naming its kind.