List the permissions of a role
GET
/roles/{id}/permissionsReturns every permission the role grants, each with id, key and label, ordered by id. An unknown role returns 404. The add and replace calls return the same set.
Path parameters
The role's id, a whole number from 1 to 2147483647. An unknown role, another organisation's role and a service role return 404.
Responses
{
"data": [
{
"id": 1,
"key": "string",
"label": "string"
}
]
}403Error
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
Examples
curl https://your-org-domain/kong/core/api/v2/roles/{id}/permissions\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"