Class RealmsAdminResource
java.lang.Object
org.keycloak.services.resources.admin.RealmsAdminResource
- Direct Known Subclasses:
RealmsAdminResourcePreflight
Top level resource for Admin REST API
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AdminAuth
protected final ClientConnection
protected static final org.jboss.logging.Logger
static final jakarta.ws.rs.core.CacheControl
protected final KeycloakSession
protected final TokenManager
-
Constructor Summary
ConstructorDescriptionRealmsAdminResource
(KeycloakSession session, AdminAuth auth, TokenManager tokenManager) -
Method Summary
Modifier and TypeMethodDescriptiongetRealmAdmin
(String name) Base path for the admin REST API for one particular realm.getRealms
(boolean briefRepresentation) Get accessible realms Returns a list of accessible realms.jakarta.ws.rs.core.Response
importRealm
(InputStream requestBody) Import a realm.protected RealmRepresentation
toRealmRep
(RealmModel realm, boolean briefRep)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
auth
-
tokenManager
-
session
-
clientConnection
-
noCache
public static final jakarta.ws.rs.core.CacheControl noCache
-
-
Constructor Details
-
RealmsAdminResource
-
-
Method Details
-
getRealms
@GET @Produces("application/json") public Stream<RealmRepresentation> getRealms(@DefaultValue("false") @QueryParam("briefRepresentation") boolean briefRepresentation) Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.- Returns:
-
toRealmRep
-
importRealm
@POST @Consumes("application/json") public jakarta.ws.rs.core.Response importRealm(InputStream requestBody) Import a realm.Imports a realm from a full representation of that realm. Realm name must be unique.
-
getRealmAdmin
Base path for the admin REST API for one particular realm.- Parameters:
headers
-name
- realm name (not id!)- Returns:
-