Get Roles By Filter
Query Rbac authorization roles
Request
URI
POST
https://{api_host}/admin/hybridity/api/authz/rbac/roles/query
COPY
Request Body
Filter object.
filter
of type(s)
application/json
Required
{
"filter": {
"id": [
"string"
],
"roleId": [
"string"
]
}
}
Responses
200
Successfully retrived requested roles.
Returns
roleList
of type(s)
application/json
{
"items": [
{
"privileges": [
"SYSTEM ADMIN",
"SYSTEM ADMIN"
],
"isDefault": false,
"name": "name",
"description": "description",
"id": "id",
"creationDate": "creationDate"
},
{
"privileges": [
"SYSTEM ADMIN",
"SYSTEM ADMIN"
],
"isDefault": false,
"name": "name",
"description": "description",
"id": "id",
"creationDate": "creationDate"
}
]
}
400
Bad Request
Returns
errorResponse
of type(s)
application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure
404
Role not found
Operation doesn't return any data structure
500
Internal Server Error
Returns
errorResponse
of type(s)
application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}