Get Datasources
Updated: July 21, 2017
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
| Name | Description | Data Type |
|---|---|---|
| group_id | Guid 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_id | Guid of the Dataset to use. You can get the dataset id from the Get Datasets operation. | String |
Header
Authorization: Bearer eyJ0eX ... FWSXfwtQ
Status code
| Code | Description |
|---|---|
| 200 | OK. 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: