Custom roles
Get custom role
Get a single custom role by key or ID
get/api/v2/roles/{customRoleKey}
Path parameters
customRoleKeystring string required
The custom role key or ID
The custom role key or ID
Response
Custom role response
Example response
{
"_id": "1234a56b7c89d012345e678f",
"_access": {
"denied": [
{
"reason": {
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
}
],
"allowed": [
{
"reason": {
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
}
]
},
"description": "This custom role is just an example",
"key": "example-custom-role",
"name": "Example custom role",
"policy": [
{
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
],
"_presetStatements": [
{
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
]
}