Path: / admin / realms

Returns a list of realms. This list is filtered based on what realms the caller is allowed to view.


Sub-Resources
Resources
NameDescription
{realm}Get the top-level representation of the realm.

Resource Methods
Method Summary
NameDescription
GET /admin/realmsReturns a list of realms.
POST /admin/realmsImport a realm from a full representation of that realm.
POST /admin/realmsUpload a realm from a uploaded JSON file.

Method Detail

GET /admin/realms

Returns a list of realms. This list is filtered based on what realms the caller is allowed to view.

HTTP Example:
GET /admin/realms
Output:
List<RealmRepresentation> -
Produces:
application/json

POST /admin/realms

Import a realm from a full representation of that realm. Realm name must be unique.

HTTP Example:
POST /admin/realms
Input:
RealmRepresentation - JSON representation
Output:
Response -
Consumes:
application/json

POST /admin/realms

Upload a realm from a uploaded JSON file. The posted represenation is expected to be a multipart/form-data encapsulation of a JSON file. The same format a browser would use when uploading a file.

HTTP Example:
POST /admin/realms
Input:
MultipartFormDataInput - multipart/form data
Output:
Response -
Consumes:
multipart/form-data