mirror of
https://github.com/grafana/grafana.git
synced 2025-09-21 05:42:52 +08:00
LBAC for datasources: Update the docs to point to UID instead of ID (#97512)
update the docs
This commit is contained in:
@ -57,13 +57,13 @@ Content-Length: 131
|
||||
```
|
||||
|
||||
## Update LBAC rules for a data source
|
||||
|
||||
|
||||
`PUT /api/datasources/uid/:uid/lbac/teams`
|
||||
|
||||
Updates LBAC rules for teams associated with the data source with the given `uid`. Here you submit a list of teams and the rules for each team.
|
||||
Deleting a team from the list will remove the team's LBAC rules. You have to submit all teams and their rules to be updated, to remove a team's rules, you have to submit the current list of rules without the team.
|
||||
|
||||
**Required permissions**
|
||||
**Required permissions**
|
||||
|
||||
| Action | Scope |
|
||||
| ----------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
@ -99,13 +99,13 @@ Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||
```
|
||||
|
||||
**Example response:**
|
||||
|
||||
|
||||
```http
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Content-Length: 35
|
||||
|
||||
```
|
||||
```
|
||||
"rules": [
|
||||
"{ service_name=\"api\" }"
|
||||
]
|
||||
@ -127,13 +127,13 @@ Content-Length: 35
|
||||
"name": "loki",
|
||||
"rules": [
|
||||
{
|
||||
"teamId": "1",
|
||||
"teamUId": "fdnd1pf4m9sxvc",
|
||||
"rules": [
|
||||
"{ service_name=\"bigquery-sync-mysql\" }"
|
||||
]
|
||||
},
|
||||
{
|
||||
"teamId": "2",
|
||||
"teamUid": "dfed1p2m9sxvfc",
|
||||
"rules": [
|
||||
"{ service_name=\"api\" }"
|
||||
]
|
||||
|
Reference in New Issue
Block a user