Interface RealmResource
public interface RealmResource
- Author:
- rodrigo.sasaki@icarros.com.br
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefaultDefaultClientScope(String clientScopeId) voidaddDefaultGroup(String groupId) voidaddDefaultOptionalClientScope(String clientScopeId) voidvoidClear the crl cache (CRLs loaded for X509 authenticationvoidvoidvoidvoidclients()convertClientDescription(String description) voiddeleteSession(String sessionId, boolean offline) Delete given user sessionflows()getAdminEvents(List<String> operationTypes, String authRealm, String authClient, String authUser, String authIpAddress, String resourcePath, String dateFrom, String dateTo, Integer firstResult, Integer maxResults) getAdminEvents(List<String> operationTypes, String authRealm, String authClient, String authUser, String authIpAddress, String resourcePath, List<String> resourceTypes, long dateFrom, long dateTo, Integer firstResult, Integer maxResults, String direction) Get admin events Returns all admin events, or filters events based on URL query parameters listed heregetAdminEvents(List<String> operationTypes, String authRealm, String authClient, String authUser, String authIpAddress, String resourcePath, List<String> resourceTypes, String dateFrom, String dateTo, Integer firstResult, Integer maxResults) getAdminEvents(List<String> operationTypes, String authRealm, String authClient, String authUser, String authIpAddress, String resourcePath, List<String> resourceTypes, String dateFrom, String dateTo, Integer firstResult, Integer maxResults, String direction) Get admin events Returns all admin events, or filters events based on URL query parameters listed heregetEvents(List<String> types, String client, String user, long dateFrom, long dateTo, String ipAddress, Integer firstResult, Integer maxResults, String direction) Get events Returns all events, or filters them based on URL query parameters listed heregetEvents(List<String> types, String client, String user, String dateFrom, String dateTo, String ipAddress, Integer firstResult, Integer maxResults) getEvents(List<String> types, String client, String user, String dateFrom, String dateTo, String ipAddress, Integer firstResult, Integer maxResults, String direction) Get events Returns all events, or filters them based on URL query parameters listed heregetGroupByPath(String path) groups()keys()partialExport(Boolean exportGroupsAndRoles, Boolean exportClients) jakarta.ws.rs.core.Responsevoidremove()voidremoveDefaultDefaultClientScope(String clientScopeId) voidremoveDefaultGroup(String groupId) voidremoveDefaultOptionalClientScope(String clientScopeId) roles()jakarta.ws.rs.core.ResponsetestLDAPConnection(String action, String connectionUrl, String bindDn, String bindCredential, String useTruststoreSpi, String connectionTimeout) Deprecated.jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsetestSMTPConnection(String config) Deprecated.jakarta.ws.rs.core.ResponsetestSMTPConnection(Map<String, String> config) voidupdate(RealmRepresentation realmRepresentation) voidusers()
-
Method Details
-
toRepresentation
-
update
-
clients
-
clientScopes
-
getDefaultDefaultClientScopes
@GET @Produces("application/json") @Path("default-default-client-scopes") List<ClientScopeRepresentation> getDefaultDefaultClientScopes() -
addDefaultDefaultClientScope
@PUT @Path("default-default-client-scopes/{clientScopeId}") void addDefaultDefaultClientScope(@PathParam("clientScopeId") String clientScopeId) -
removeDefaultDefaultClientScope
@DELETE @Path("default-default-client-scopes/{clientScopeId}") void removeDefaultDefaultClientScope(@PathParam("clientScopeId") String clientScopeId) -
getDefaultOptionalClientScopes
@GET @Produces("application/json") @Path("default-optional-client-scopes") List<ClientScopeRepresentation> getDefaultOptionalClientScopes() -
addDefaultOptionalClientScope
@PUT @Path("default-optional-client-scopes/{clientScopeId}") void addDefaultOptionalClientScope(@PathParam("clientScopeId") String clientScopeId) -
removeDefaultOptionalClientScope
@DELETE @Path("default-optional-client-scopes/{clientScopeId}") void removeDefaultOptionalClientScope(@PathParam("clientScopeId") String clientScopeId) -
convertClientDescription
@Path("client-description-converter") @POST @Consumes("application/json") @Produces("application/json") ClientRepresentation convertClientDescription(String description) -
users
-
roles
-
rolesById
-
groups
-
clearEvents
@DELETE @Path("events") void clearEvents() -
getEvents
-
getEvents
@Path("events") @GET @Produces("application/json") List<EventRepresentation> getEvents(@QueryParam("type") List<String> types, @QueryParam("client") String client, @QueryParam("user") String user, @QueryParam("dateFrom") String dateFrom, @QueryParam("dateTo") String dateTo, @QueryParam("ipAddress") String ipAddress, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults) -
getEvents
@Path("events") @GET @Produces("application/json") List<EventRepresentation> getEvents(@QueryParam("type") List<String> types, @QueryParam("client") String client, @QueryParam("user") String user, @QueryParam("dateFrom") String dateFrom, @QueryParam("dateTo") String dateTo, @QueryParam("ipAddress") String ipAddress, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("direction") String direction) Get events Returns all events, or filters them based on URL query parameters listed here- Parameters:
types- The types of events to returnclient- App or oauth client nameuser- User idipAddress- IP addressdateFrom- From (inclusive) date (yyyy-MM-dd)dateTo- To (inclusive) date (yyyy-MM-dd)firstResult- Paging offsetmaxResults- Maximum results size (defaults to 100)direction- The direction to sort events by. Available values are "asc" or "desc". The parameter is supported since Keycloak 26.2- Returns:
- events
- Since:
- Keycloak 26.2. Use method
getEvents(List, String, String, String, String, String, Integer, Integer)for the older versions of the Keycloak server
-
getEvents
@Path("events") @GET @Produces("application/json") List<EventRepresentation> getEvents(@QueryParam("type") List<String> types, @QueryParam("client") String client, @QueryParam("user") String user, @QueryParam("dateFrom") long dateFrom, @QueryParam("dateTo") long dateTo, @QueryParam("ipAddress") String ipAddress, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("direction") String direction) Get events Returns all events, or filters them based on URL query parameters listed here- Parameters:
types- The types of events to returnclient- App or oauth client nameuser- User idipAddress- IP addressdateFrom- time in Epoch timestamp. The parameter is supported since Keycloak 26.2dateTo- time in Epoch timestamp. The parameter is supported since Keycloak 26.2firstResult- Paging offsetmaxResults- Maximum results size (defaults to 100)direction- The direction to sort events by. Available values are "asc" or "desc". The parameter is supported since Keycloak 26.2- Returns:
- events
- Since:
- Keycloak 26.2. Use method
getEvents(List, String, String, String, String, String, Integer, Integer)for the older versions of the Keycloak server
-
clearAdminEvents
@DELETE @Path("admin-events") void clearAdminEvents() -
getAdminEvents
@GET @Path("admin-events") @Produces("application/json") List<AdminEventRepresentation> getAdminEvents() -
getAdminEvents
@GET @Path("admin-events") @Produces("application/json") List<AdminEventRepresentation> getAdminEvents(@QueryParam("operationTypes") List<String> 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) -
getAdminEvents
@GET @Path("admin-events") @Produces("application/json") List<AdminEventRepresentation> getAdminEvents(@QueryParam("operationTypes") List<String> operationTypes, @QueryParam("authRealm") String authRealm, @QueryParam("authClient") String authClient, @QueryParam("authUser") String authUser, @QueryParam("authIpAddress") String authIpAddress, @QueryParam("resourcePath") String resourcePath, @QueryParam("resourceTypes") List<String> resourceTypes, @QueryParam("dateFrom") String dateFrom, @QueryParam("dateTo") String dateTo, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults) -
getAdminEvents
@GET @Path("admin-events") @Produces("application/json") List<AdminEventRepresentation> getAdminEvents(@QueryParam("operationTypes") List<String> operationTypes, @QueryParam("authRealm") String authRealm, @QueryParam("authClient") String authClient, @QueryParam("authUser") String authUser, @QueryParam("authIpAddress") String authIpAddress, @QueryParam("resourcePath") String resourcePath, @QueryParam("resourceTypes") List<String> resourceTypes, @QueryParam("dateFrom") String dateFrom, @QueryParam("dateTo") String dateTo, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("direction") String direction) Get admin events Returns all admin events, or filters events based on URL query parameters listed here- Parameters:
operationTypes- operation typesauthRealm- realm, from where the user was authenticatedauthClient- client, which authenticated the event operationauthUser- user, which did the particular admin eventauthIpAddress- IP address from which the event was doneresourcePath- resource pathresourceTypes- resource typesdateFrom- time in Epoch timestamp. The parameter is supported since Keycloak 26.2dateTo- time in Epoch timestamp. The parameter is supported since Keycloak 26.2firstResult- Paging offsetmaxResults- Maximum results size (defaults to 100)direction- The direction to sort events by. Available values are "asc" or "desc". The parameter is supported since Keycloak 26.2- Returns:
- admin events
- Since:
- Keycloak 26.2. Use method
getAdminEvents(List, String, String, String, String, String, List, String, String, Integer, Integer)for the older versions of the Keycloak server
-
getAdminEvents
@GET @Path("admin-events") @Produces("application/json") List<AdminEventRepresentation> getAdminEvents(@QueryParam("operationTypes") List<String> operationTypes, @QueryParam("authRealm") String authRealm, @QueryParam("authClient") String authClient, @QueryParam("authUser") String authUser, @QueryParam("authIpAddress") String authIpAddress, @QueryParam("resourcePath") String resourcePath, @QueryParam("resourceTypes") List<String> resourceTypes, @QueryParam("dateFrom") long dateFrom, @QueryParam("dateTo") long dateTo, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("direction") String direction) Get admin events Returns all admin events, or filters events based on URL query parameters listed here- Parameters:
operationTypes- operation typesauthRealm- realm, from where the user was authenticatedauthClient- client, which authenticated the event operationauthUser- user, which did the particular admin eventauthIpAddress- IP address from which the event was doneresourcePath- resource pathresourceTypes- resource typesdateFrom- From (inclusive) date (yyyy-MM-dd)dateTo- To (inclusive) date (yyyy-MM-dd)firstResult- Paging offsetmaxResults- Maximum results size (defaults to 100)direction- The direction to sort events by. Available values are "asc" or "desc". The parameter is supported since Keycloak 26.2- Returns:
- admin events
- Since:
- Keycloak 26.2. Use method
getAdminEvents(List, String, String, String, String, String, List, String, String, Integer, Integer)for the older versions of the Keycloak server
-
getRealmEventsConfig
@GET @Path("events/config") @Produces("application/json") RealmEventsConfigRepresentation getRealmEventsConfig() -
updateRealmEventsConfig
@PUT @Path("events/config") @Consumes("application/json") void updateRealmEventsConfig(RealmEventsConfigRepresentation rep) -
getGroupByPath
@GET @Path("group-by-path/{path: .*}") @Produces("application/json") GroupRepresentation getGroupByPath(@PathParam("path") String path) -
getDefaultGroups
@GET @Produces("application/json") @Path("default-groups") List<GroupRepresentation> getDefaultGroups() -
addDefaultGroup
-
removeDefaultGroup
@DELETE @Path("default-groups/{groupId}") void removeDefaultGroup(@PathParam("groupId") String groupId) -
identityProviders
-
remove
@DELETE void remove() -
getClientSessionStats
-
clientInitialAccess
-
clientRegistrationPolicy
-
partialImport
@Path("partialImport") @POST @Consumes("application/json") @Produces("application/json") jakarta.ws.rs.core.Response partialImport(PartialImportRepresentation rep) -
partialExport
@Path("partial-export") @POST @Produces("application/json") RealmRepresentation partialExport(@QueryParam("exportGroupsAndRoles") Boolean exportGroupsAndRoles, @QueryParam("exportClients") Boolean exportClients) -
flows
-
attackDetection
-
testLDAPConnection
@Path("testLDAPConnection") @POST @Consumes("application/x-www-form-urlencoded") @Deprecated jakarta.ws.rs.core.Response testLDAPConnection(@FormParam("action") String action, @FormParam("connectionUrl") String connectionUrl, @FormParam("bindDn") String bindDn, @FormParam("bindCredential") String bindCredential, @FormParam("useTruststoreSpi") String useTruststoreSpi, @FormParam("connectionTimeout") String connectionTimeout) Deprecated. -
testLDAPConnection
@Path("testLDAPConnection") @POST @Consumes("application/json") jakarta.ws.rs.core.Response testLDAPConnection(TestLdapConnectionRepresentation config) -
ldapServerCapabilities
@POST @Path("ldap-server-capabilities") @Consumes("application/json") @Produces("application/json") List<LDAPCapabilityRepresentation> ldapServerCapabilities(TestLdapConnectionRepresentation config) -
testSMTPConnection
@Path("testSMTPConnection") @POST @Consumes("application/x-www-form-urlencoded") @Deprecated jakarta.ws.rs.core.Response testSMTPConnection(@FormParam("config") String config) Deprecated. -
testSMTPConnection
-
clearRealmCache
@Path("clear-realm-cache") @POST void clearRealmCache() -
clearUserCache
@Path("clear-user-cache") @POST void clearUserCache() -
clearKeysCache
@Path("clear-keys-cache") @POST void clearKeysCache() -
clearCrlCache
@Path("clear-crl-cache") @POST void clearCrlCache()Clear the crl cache (CRLs loaded for X509 authentication- Since:
- Keycloak 26.2
-
pushRevocation
-
logoutAll
-
deleteSession
@Path("sessions/{session}") @DELETE void deleteSession(@PathParam("session") String sessionId, @DefaultValue("false") @QueryParam("isOffline") boolean offline) Delete given user session- Parameters:
sessionId- session IDoffline- Parameter available since Keycloak server 24.0.2. Will be ignored on older Keycloak versions with the default value false.- Throws:
jakarta.ws.rs.NotFoundException- if the user session is not found
-
components
-
userStorage
-
keys
-
localization
-
clientPoliciesPoliciesResource
-
clientPoliciesProfilesResource
-
organizations
-
clientTypes
-
workflows
-