From 1f000fe2185a9951cf7d30e94ac9b0af0c387680 Mon Sep 17 00:00:00 2001 From: jhollmann Date: Tue, 2 Nov 2021 09:20:44 +0100 Subject: [PATCH] NoIssue: Introduce additional getAdminEvents method with the resourceTypes query parameter. --- .../keycloak/admin/client/resource/RealmResource.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RealmResource.java b/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RealmResource.java index 08a28aa177..bfcdad2b16 100644 --- a/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RealmResource.java +++ b/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RealmResource.java @@ -137,6 +137,15 @@ public interface RealmResource { @Produces(MediaType.APPLICATION_JSON) List getAdminEvents(); + @GET + @Path("admin-events") + @Produces(MediaType.APPLICATION_JSON) + List getAdminEvents(@QueryParam("operationTypes") List operationTypes, @QueryParam("authRealm") String authRealm, @QueryParam("authClient") String authClient, + @QueryParam("authUser") String authUser, @QueryParam("authIpAddress") String authIpAddress, + @QueryParam("resourcePath") String resourcePath, @QueryParam("dateFrom") String dateFrom, + @QueryParam("dateTo") String dateTo, @QueryParam("first") Integer firstResult, + @QueryParam("max") Integer maxResults); + @GET @Path("admin-events") @Produces(MediaType.APPLICATION_JSON)