mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LBAC for datasources: FIX adds missing uid in endpoint url (#96241)
FIX: adds missing uid in endpoint ulrl
This commit is contained in:
@@ -26,7 +26,7 @@ LBAC (Label-Based Access Control) rules can be set for teams.
|
||||
|
||||
## Get LBAC rules for a data source
|
||||
|
||||
`GET /api/datasources/:uid/lbac/teams`
|
||||
`GET /api/datasources/uid/:uid/lbac/teams`
|
||||
|
||||
Gets all existing LBAC rules for the data source with the given `uid`.
|
||||
|
||||
@@ -41,7 +41,7 @@ Gets all existing LBAC rules for the data source with the given `uid`.
|
||||
**Example request:**
|
||||
|
||||
```
|
||||
GET /api/datasources/:uid/lbac/teams HTTP/1.1
|
||||
GET /api/datasources/uid/my_datasource/lbac/teams HTTP/1.1
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||
@@ -74,7 +74,7 @@ Content-Length: 131
|
||||
|
||||
**Example request:**
|
||||
|
||||
```http
|
||||
```http
|
||||
PUT /api/datasources/uid/my_datasource/lbac/teams
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
@@ -91,7 +91,7 @@ Deleting a team from the list will remove the team's LBAC rules. You have to sub
|
||||
{
|
||||
"teamId": "2",
|
||||
"rules": [
|
||||
"{ service_name=\"api\" }"
|
||||
"{ service_name=\"api\" }"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user