Reports - Get Datasources

Returns a list of data sources for the specified paginated report (RDL) from My workspace.

Required Scope

Report.ReadWrite.All or Report.Read.All

GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/datasources

URI Parameters

Name In Required Type Description
reportId
path True

string

uuid

The report ID

Responses

Name Type Description
200 OK

Datasources

OK

Examples

Example

Sample request

GET https://api.powerbi.com/v1.0/myorg/reports/cfafbeb1-8037-4d0c-896e-a46fb27ff228/datasources

Sample response

{
  "value": [
    {
      "name": "MyDatasource",
      "datasourceType": "AnalysisServices",
      "datasourceId": "f8c56590-43cb-43bf-8daa-233ba2520f51",
      "gatewayId": "1f69e798-5852-4fdd-ab01-33bb14b6e931",
      "connectionDetails": {
        "server": "My-As-Server",
        "database": "My-As-Database"
      }
    }
  ]
}

Definitions

Name Description
Datasource

A Power BI data source

DatasourceConnectionDetails

The Power BI data source connection details. See examples in Get Datasources or Get Datasources In Group.

Datasources

The OData response wrapper for a Power BI data source collection

Datasource

A Power BI data source

Name Type Description
connectionDetails

DatasourceConnectionDetails

The data source connection details

connectionString

string

(Deprecated) The data source connection string. Available only for DirectQuery.

datasourceId

string

The bound data source ID, which is empty when not bound to a gateway

datasourceType

string

The data source type

gatewayId

string

The bound gateway ID, which is empty when not bound to a gateway. When using a gateway cluster, the gateway ID refers to the primary (first) gateway in the cluster and is similar to the gateway cluster ID.

name

string

(Deprecated) The data source name. Available only for DirectQuery.

DatasourceConnectionDetails

The Power BI data source connection details. See examples in Get Datasources or Get Datasources In Group.

Name Type Description
account

string

The connection account

classInfo

string

The connection class information

database

string

The connection database

domain

string

The connection domain

emailAddress

string

The connection email address

kind

string

The connection kind

loginServer

string

The connection login server

path

string

The connection path

server

string

The connection server

url

string

The connection URL

Datasources

The OData response wrapper for a Power BI data source collection

Name Type Description
odata.context

string

OData context

value

Datasource[]

The data source collection