Path: / admin / realms / {realm} / applications-by-id / {app-name} / roles

List all roles for this realm or application

Path parameters:
realm - realm name (not id!)
app-name -

Sub-Resources
Resources
NameDescription
{role-name}Get a role by name

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/applications-by-id/{app-name}/rolesList all roles for this realm or application
POST /admin/realms/{realm}/applications-by-id/{app-name}/rolesCreate a new role for this realm or application

Method Detail

GET /admin/realms/{realm}/applications-by-id/{app-name}/roles

List all roles for this realm or application

HTTP Example:
GET /admin/realms/{realm}/applications-by-id/{app-name}/roles
API Example:

RoleContainerResource.getRoles({'realm': /* name realm name (not id!) */,
  'app-name': /* name */});

Output:
List<RoleRepresentation> -
Produces:
application/json

POST /admin/realms/{realm}/applications-by-id/{app-name}/roles

Create a new role for this realm or application

HTTP Example:
POST /admin/realms/{realm}/applications-by-id/{app-name}/roles
API Example:

RoleContainerResource.createRole({'realm': /* name realm name (not id!) */,
  'app-name': /* name */,
  '$entity': /* rep */});

Input:
RoleRepresentation
Output:
Response -
Consumes:
application/json