Core
API v2.x
2

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>"
}