mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
32 lines
844 B
JSON
32 lines
844 B
JSON
{
|
|
"type": "datasource",
|
|
"name": "Test Datasource",
|
|
"id": "test-ds",
|
|
|
|
"routes": [
|
|
{
|
|
"path": "tokenTest",
|
|
"method": "*",
|
|
"url": "http://localhost:3333/query",
|
|
"tokenAuth": {
|
|
"url": "https://login.microsoftonline.com/{{.JsonData.tenantId}}/oauth2/token",
|
|
"params": {
|
|
"grant_type": "client_credentials",
|
|
"client_id": "{{.JsonData.clientId}}",
|
|
"client_secret": "{{.SecureJsonData.clientSecret}}",
|
|
"resource": "https://management.azure.com/"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"path": "api/v4/",
|
|
"method": "*",
|
|
"url": "http://localhost:3333",
|
|
"headers": [
|
|
{"name": "X-CH-Auth-API-Token", "content": "test {{.SecureJsonData.token}}"},
|
|
{"name": "X-CH-Auth-Email", "content": "test {{.JsonData.email}}"}
|
|
]
|
|
}
|
|
]
|
|
}
|