*View permissions for the specified role
Requests
HTTP request
GET /auth/v1/roles/{name}/rules
Responses
Content-Type
application/json
Status code: 200
OK
Sample response
Role Rule List
{
"apiVersion": "",
"items": [
{
"group": "",
"resources": [
{
"name": "",
"resourceNames": [
""
],
"verbs": [
""
]
}
]
}
],
"kind": "",
"metadata": {
"continue": "",
"remainingItemCount": 1,
"resourceVersion": "",
"selfLink": ""
}
}Parameters
| Name | Type | Description |
|---|---|---|
| apiVersion | string | See common parameters |
| items | array |
Item for Role Rule List
Path: items |
| items[] | object |
Role Rule
Path: items[] |
| items[].group | string |
group
Path: items[].group |
| items[].resources | array |
resources
Path: items[].resources |
| items[].resources[] | object |
Role Resource
Path: items[].resources[] |
| resources[].name | string |
name
Path: items[].resources[].name |
| resources[].resourceNames | array |
resource names
Path: items[].resources[].resourceNames |
| resources[].resourceNames[] | string |
resource name
Path: items[].resources[].resourceNames[] |
| resources[].verbs | array |
verbs
Path: items[].resources[].verbs |
| resources[].verbs[] | string |
verb
Path: items[].resources[].verbs[] |
| kind | string | See common parameters |
| metadata | object | See common parameters |