Retrieves the metadata for all of the API keys that the user generated.
The metadata for the API keys is retrieved.
The list of API keys.
The response model for an API key.
The API key ID.
The user ID.
The organization ID linked to the API key
The API key description. TIP: Useful when you have multiple API keys.
The API key. TIP: Since the API key is returned only once, save it in a safe place.
The date/time for when the API key is created.
The date/time when the API key expires.
Roles assigned to users, API keys or organization invitations. Currently unavailable in self-hosted ECE.
Assignments for roles with platform scope.
Assignment for a role with platform scope.
Assignments for roles with organization scope.
Assignment for a role with organization scope.
Assignments for roles with deployment scope.
Assignment for a role with deployment scope.
The ID of the role that is assigned.
The ID of the organization the role is scoped to.
When true, the role applies to all deployments in the organization, otherwise the role is scoped to the deployments specified in deployment_ids.
The IDs of the deployments the role is scoped to. Must be absent if all is true, and present if all is false.
If provided, the user assigned this role assignment will be granted this application role when signing in to the deployment(s) specified in the role assignment.
Assignments for roles with project scope.
The Elasticsearch project-scoped role assignments to set
Assignment for a role with project scope.
The ID of the role that is assigned.
The ID of the organization the role is scoped to.
When true, the role applies to all projects in the organization, otherwise the role is scoped to the projects specified in project_ids.
The IDs of the projects the role is scoped to. Must be absent if all is true, and present if all is false.
If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.
The Observability project-scoped role assignments to set
Assignment for a role with project scope.
The ID of the role that is assigned.
The ID of the organization the role is scoped to.
When true, the role applies to all projects in the organization, otherwise the role is scoped to the projects specified in project_ids.
The IDs of the projects the role is scoped to. Must be absent if all is true, and present if all is false.
If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.
The Security project-scoped role assignments to set
Assignment for a role with project scope.
The ID of the role that is assigned.
The ID of the organization the role is scoped to.
When true, the role applies to all projects in the organization, otherwise the role is scoped to the projects specified in project_ids.
The IDs of the projects the role is scoped to. Must be absent if all is true, and present if all is false.
If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.
curl \
--request GET 'https://api.elastic-cloud.com/api/v1/users/auth/keys'