Reports - Bind To Gateway In Group
Binds the specified data source of the paginated report from the specified workspace to the specified gateway, optionally with a given data source ID. If you don't supply a specific data source ID, the data source will be bound to the first matching data source in the gateway.
Permissions
This API call can be called by a service principal profile.
Required Delegated Scopes
Workspace.Read.All or Workspace.ReadWrite.All
Limitations
Only supports the on-premises data gateway
POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/Default.BindToGateway
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
group
|
path | True |
string uuid |
The workspace ID |
report
|
path | True |
string uuid |
The report ID |
Request Body
Name | Required | Type | Description |
---|---|---|---|
bindDetails | True |
List of bind details |
|
gatewayObjectId | True |
string |
The gateway ID. 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. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
Example
Sample request
POST https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/reports/cfafbeb1-8037-4d0c-896e-a46fb27ff229/Default.BindToGateway
{
"gatewayObjectId": "1f69e798-5852-4fdd-ab01-33bb14b6e934",
"bindDetails": [
{
"dataSourceName": "DataSource1",
"dataSourceObjectId": "dc2f2dac-e5e2-4c37-af76-2a0bc10f16cb"
},
{
"dataSourceName": "DataSource2",
"dataSourceObjectId": "3bfe5d33-ab7d-4d24-b0b5-e2bb8eb01cf5"
}
]
}
Sample response
Definitions
Name | Description |
---|---|
Rdl |
BindDetail for each data source in a paginated report |
Rdl |
Paginated report bind data source to gateway request |
RdlBindDetail
BindDetail for each data source in a paginated report
Name | Type | Description |
---|---|---|
dataSourceName |
string |
Name of the data source in the paginated report |
dataSourceObjectId |
string |
The unique identifier for the data source in the gateway |
RdlBindToGatewayRequest
Paginated report bind data source to gateway request
Name | Type | Description |
---|---|---|
bindDetails |
List of bind details |
|
gatewayObjectId |
string |
The gateway ID. 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. |