Datasets - Get Gateway Datasources In Group

Returns a list of gateway datasources for the specified dataset from the specified workspace.

Note: Use the Dataset - Get Datasources In Group API instead.

Required scope: Dataset.ReadWrite.All or Dataset.Read.All
To set the permissions scope, see Register an app.

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.GetBoundGatewayDatasources

URI Parameters

Name In Required Type Description
groupId
path True
  • string
uuid

The workspace id

datasetId
path True
  • string

The dataset id

Responses

Name Type Description
200 OK

OK

Examples

example

Sample Request

GET https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/Default.GetBoundGatewayDatasources

Sample Response

{
  "value": [
    {
      "id": "16a54ccd-620d-4af3-9197-0b8c779a9a6d",
      "gatewayId": "7f1c4e55-544b-403f-b132-da0d3a024674",
      "datasourceType": "Sql",
      "connectionDetails": "{\"server\":\"MyServer.database.windows.net\",\"database\":\"MyDatabase\"}"
    }
  ]
}

Definitions

credentialType

Type of the datasoruce credentials

GatewayDatasource

A Power BI gateway datasource

GatewayDatasources

Odata response wrapper for a Power BI gateway datasource collection

credentialType

Type of the datasoruce credentials

Name Type Description
Anonymous
  • string
Basic
  • string
Key
  • string
OAuth2
  • string
Windows
  • string

GatewayDatasource

A Power BI gateway datasource

Name Type Description
connectionDetails
  • string

Connection details in json format

credentialType

Type of the datasoruce credentials

datasourceName
  • string

The name of the datasource

datasourceType
  • string

The type of the datasource

gatewayId
  • string

The associated gateway id

id
  • string

The unique id for this datasource

GatewayDatasources

Odata response wrapper for a Power BI gateway datasource collection

Name Type Description
odata.context
  • string

OData context

value

List of gateway datasources