Get Datasources

 

Updated: July 21, 2017



Request | Response

The Get Datasources operation returns a JSON object which includes name and connectionString.

Required scope: Dataset.ReadWrite.All or Dataset.Read.All

To set the permissions scope, see Register a client app or Register a web app.

GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetID}/dataSources

Groups

Groups are a collection of unified Azure Active Directory groups that the user is a member of and is available in the Power BI service. These are referred to as app workspaces within the Power BI service. To learn how to create a group, see Create an app workspace.

GET https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{datasetID}/dataSources

Uri parameter

NameDescriptionData Type
group_idGuid of the Group to use. You can get the group id from the Get Groups operation. Groups are referred to as app workspaces within the Power BI service.String
dataset_idGuid of the Dataset to use. You can get the dataset id from the Get Datasets operation.String

Header

Authorization: Bearer eyJ0eX ... FWSXfwtQ

Status code

CodeDescription
200OK. Indicates success. The dataset is returned in the response body.

Content-Type

application/json

Body schema

{
  "odata.context": "string",
  "value": [
    {
      "name": "string",
      "connectionString": "string"
    }
  ]
}

Show: