datasources
Create a data source.
By defining password and basicAuthPassword under secureJsonData property Grafana encrypts them securely as an encrypted blob in the database. The response then lists the encrypted fields under secureJsonFields.
If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: datasources:create
post/datasources
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/datasources
- Auth
- HTTP basic
- or API key in header Authorization
Request body
Response
(empty)
Example response
{
"id": 65,
"message": "Data source added",
"name": "My Data source"
}Changes
No recorded changes to this operation across all 2 revisions of this API.