Docs: Use bearer auth not basic auth in IAM doc examples (#88984)

use bearer auth not basic auth in examples
This commit is contained in:
Ieva
2024-06-11 10:35:22 +03:00
committed by GitHub
parent 3d40caf819
commit 10857c5400
3 changed files with 13 additions and 13 deletions
@@ -136,7 +136,7 @@ The following request creates a custom role that includes permissions to access
```
curl --location --request POST '<grafana_url>/api/access-control/roles/' \
--header 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' \
--header 'Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": 1,
@@ -144,7 +144,7 @@ curl --location --request POST '<grafana_url>/api/access-control/roles/' \
"displayName": "Read-only access to alerts in folder Test-Folder",
"description": "Let user query DS1 and DS2, and read alerts in folder Test-Folders",
"group":"Custom",
"global": true,
"global": false,
"permissions": [
{
"action": "folders:read",