List cluster events
Returns Keycloak user and admin events for the cluster, sorted by timestamp (newest first by default).
When neither start_time nor end_time is provided the query covers the last 24 hours. The maximum date range is 90 days.
Required scope: clusters:events:read
Request
- Base URL: http://localhost:8000
- URL: http://localhost:8000/clusters/{cluster_id}/events
- Auth: API key in header API-Key
Path parameters
Query parameters
Maximum number of results to return.
Number of results to skip from the start.
Inclusive start time (ISO 8601). Defaults to 24 hours ago when omitted.
Inclusive end time (ISO 8601). Defaults to the current time when omitted.
Keycloak event category.
Filter to a specific event category. Returns both categories when omitted.
Keycloak realm name (not ID). Must start with a letter; allows letters, digits, and hyphens.
Filter by realm name.
Filter by realm UUID.
Filter by one or more OAuth2 client IDs. Accepts multiple values.
Filter by Keycloak user UUID. Applies to user events only.
Filter by username prefix (case-sensitive). Applies to user events only.
Filter by user event type. Accepts multiple values. Applies to user events only. Mutually exclusive with operation_types.
Filter by admin operation type. Accepts multiple values. Applies to admin events only. Mutually exclusive with types.
Filter by error code. Applies to user events only.
Case-insensitive substring search across username, client_id, realm_name, and ip_address.
Sort direction.
Sort order by timestamp. Defaults to desc (newest first).
Headers
Response
The request has succeeded.
Example response
[
{
"geo": {
"country_code": "US",
"country": "United States",
"city": "New York",
"latitude": 40.7128,
"longitude": -74.006
},
"auth_method": "openid-connect",
"grant_type": "authorization_code",
"error": "invalid_user_credentials",
"resource_type": "USER",
"resource_path": "/users/550e8400-e29b-41d4-a716-446655440000"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.