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}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/datasources/{id}
  • Auth
    • HTTP basic
    • or API key in header Authorization

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

Changes

No recorded changes to this operation across all 2 revisions of this API.