v1

latestSwagger 2.02026-07-17290378721.8 KB
datasources

Get a single data source by Id.

If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: datasources:read and scopes: datasources:*, datasources:id:* and datasources:id:1 (single data source).

Please refer to updated API instead

get/datasources/{id}

Path parameters

idstring required

Response

(empty)

accessstring
accessControlMetadata

Metadata contains user accesses for a given resource Ex: map[string]bool{"create":true, "delete": true}

basicAuthboolean
basicAuthUserstring
databasestring
idinteger
isDefaultboolean
jsonDataJson
namestring
orgIdinteger
readOnlyboolean
secureJsonFieldsobject
typestring
typeLogoUrlstring
uidstring
urlstring
userstring
versioninteger
withCredentialsboolean