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": {
"rateLimit": 50,
"policies": [
{
"roleId": "<roleId>"
},
{
"roleId": "<roleId>",
"restrictedTo": [
{
"index": "<index>"
},
{
"index": "<index>",
"collections": [
"<coll1>",
"<coll2>"
]
}
]
}
]
},
"action": "getProfile",
"controller": "security",
"requestId": "<unique request identifier>"
}
}
Edit this page on Github (opens new window)