mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add apiVersion to datasource settings DTO (#90057)
This commit is contained in:
parent
37a58d15cf
commit
be98ab1111
@ -412,14 +412,15 @@ func (hs *HTTPServer) getFSDataSources(c *contextmodel.ReqContext, availablePlug
|
||||
}
|
||||
|
||||
dsDTO := plugins.DataSourceDTO{
|
||||
ID: ds.ID,
|
||||
UID: ds.UID,
|
||||
Type: ds.Type,
|
||||
Name: ds.Name,
|
||||
URL: url,
|
||||
IsDefault: ds.IsDefault,
|
||||
Access: string(ds.Access),
|
||||
ReadOnly: ds.ReadOnly,
|
||||
ID: ds.ID,
|
||||
UID: ds.UID,
|
||||
Type: ds.Type,
|
||||
Name: ds.Name,
|
||||
URL: url,
|
||||
IsDefault: ds.IsDefault,
|
||||
Access: string(ds.Access),
|
||||
ReadOnly: ds.ReadOnly,
|
||||
APIVersion: ds.APIVersion,
|
||||
}
|
||||
|
||||
ap, exists := availablePlugins.Get(plugins.TypeDataSource, ds.Type)
|
||||
|
@ -191,6 +191,7 @@ type DataSourceDTO struct {
|
||||
Module string `json:"module,omitempty"`
|
||||
JSONData map[string]any `json:"jsonData"`
|
||||
ReadOnly bool `json:"readOnly"`
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
|
||||
BasicAuth string `json:"basicAuth,omitempty"`
|
||||
WithCredentials bool `json:"withCredentials,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user