Skip to content

Latest commit

 

History

History
82 lines (64 loc) · 1.06 KB

File metadata and controls

82 lines (64 loc) · 1.06 KB
code type title
true
page
getProfile

getProfile

Gets a security profile.


Query Syntax

HTTP

URL: http://kuzzle:7512/profiles/<_id>
Method: GET

Other protocols

{
  "controller": "security",
  "action": "getProfile",
  "_id": "<profileId>"
}

Arguments

  • _id: profile identifier

Response

Returns the queried profile information:

  • _id: profile identifier
  • _source: profile content
{
  "status": 200,
  "error": null,
  "result": {
    "_id": "<profileId>",
    "_source": {
      "policies": [
        {
          "roleId": "<roleId>"
        },
        {
          "roleId": "<roleId>",
          "restrictedTo": [
            {
              "index": "<index>"
            },
            {
              "index": "<index>",
              "collections": [
                "<coll1>",
                "<coll2>"
              ]
            }
          ]
        }
      ]
    },
    "action": "getProfile",
    "controller": "security",
    "requestId": "<unique request identifier>"
  }
}