Core
API v2.x
2

getRole #

Gets a security role.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/roles/<_id>
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "security",
  "action": "getRole",
  "_id": "<roleId>"
}

Arguments #

  • _id: role identifier

Response #

Returns the queried role:

  • _id: role identifier
  • _source: role description
Copied to clipboard!
{
  "status": 200,
  "error": null,
  "result": {
    "_id": "<roleId>",
    "_source": {
      "controllers": {
        "*": {
          "actions": true
        }
      }
    }
  },
  "action": "getRole",
  "controller": "security",
  "requestId": "<unique request identifier>"
}