+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "DataSourceSrv"
keywords = ["grafana","documentation","sdk","@grafana/runtime"]
type = "docs"
draft = true
+++

## DataSourceSrv interface

<b>Signature</b>

```typescript
export interface DataSourceSrv 
```
<b>Import</b>

```typescript
import { DataSourceSrv } from '@grafana/runtime';
```
<b>Methods</b>

|  Method | Description |
|  --- | --- |
|  [get(name, scopedVars)](#get-method) |  |

### get method

<b>Signature</b>

```typescript
get(name?: string, scopedVars?: ScopedVars): Promise<DataSourceApi>;
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  name | <code>string</code> |  |
|  scopedVars | <code>ScopedVars</code> |  |

<b>Returns:</b>

`Promise<DataSourceApi>`

