Access control: Rename predefined roles to fixed roles (docs) (#34472)

This commit is contained in:
Emil Tullstedt
2021-05-26 14:59:24 +02:00
committed by GitHub
parent 3064209cd5
commit 96da84ca49
4 changed files with 47 additions and 47 deletions

View File

@ -87,7 +87,7 @@ Content-Type: application/json; charset=UTF-8
Code | Description
--- | --- |
200 | Global and organization local roles are returned.
403 | Access denied
403 | Access denied
500 | Unexpected error. Refer to body and/or server logs for more details.
### Get a role
@ -96,7 +96,7 @@ Content-Type: application/json; charset=UTF-8
Get a role for the given UID.
#### Required permissions
#### Required permissions
Action | Scope
--- | --- |
@ -142,7 +142,7 @@ Content-Type: application/json; charset=UTF-8
roles:write | permissions:delegate
#### Example request
```http
POST /api/access-control/roles
Accept: application/json
@ -176,7 +176,7 @@ Code | Description
**Permission**
Field Name | Data Type | Required | Description
Field Name | Data Type | Required | Description
--- | --- | --- | ---
action | string | Yes | Refer to [Permissions]({{< relref "../enterprise/access-control/permissions.md" >}}) for full list of available actions.
scope | string | No | If not present, no scope will be mapped to the permission. Refer to [Permissions]({{< relref "../enterprise/access-control/permissions.md#scope-definitions" >}}) for full list of available scopes.
@ -438,7 +438,7 @@ Content-Type: application/json; charset=UTF-8
Param | Type | Required | Description
--- | --- | --- | ---
global | boolean | No | A flag indicating if the assignment is global or not. If set to `false`, the default org ID of the authenticated user will be used from the request to remove assignment. Refer to the [Built-in role assignments]({{< relref "../enterprise/access-control/roles.md#built-in-role-assignments" >}}) for more information.
#### Example response
```http
@ -447,7 +447,7 @@ Content-Type: application/json; charset=UTF-8
```
#### Status codes
#### Status codes
Code | Description
--- | --- |
@ -458,7 +458,7 @@ Content-Type: application/json; charset=UTF-8
500 | Unexpected error. Refer to body and/or server logs for more details.
"version": 1,
"uid": "qQui_LCMk",
"name": "grafana:roles:users:org:edit",
"name": "fixed:users:org:edit",
"description": "",
"global": true,
"updated": "2021-05-13T16:24:26+02:00",