Retrieves all service credentials for a service account.
To use this API, you must have at least the
Use this API to retrieve a list of credentials for a service account. The response includes service account tokens that were created with the << create service account API >> as well as file-backed tokens from all nodes of the cluster.
For tokens backed by the
service_tokens file, the API collects
them from all nodes of the cluster. Tokens with the same name from
different nodes are assumed to be the same token and are only counted once
towards the total number of service tokens.
- (Required, string) Name of the namespace.
- (Required, string) Name of the service name.
The following request uses the create service account token API to create a service account token named
elastic/fleet-server service account:
The following request returns all credentials for the
The response includes all credentials related to the specified service account:
A new service account token backed by the
An existing service account token backed by the
This section contains service account credentials collected from all nodes of the cluster
General status showing how nodes respond to the above collection request
File-backed tokens collected from all nodes
List of nodes that (file-backed)