getRole #
Gets a security role.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/roles/<_id>
Method: GET
Other protocols #
{
"controller": "security",
"action": "getRole",
"_id": "<roleId>"
}
Arguments #
_id
: role identifier
Response #
Returns the queried role:
_id
: role identifier_source
: role description
{
"status": 200,
"error": null,
"result": {
"_id": "<roleId>",
"_source": {
"controllers": {
"*": {
"actions": true
}
}
}
},
"action": "getRole",
"controller": "security",
"requestId": "<unique request identifier>"
}
Edit this page on Github (opens new window)