Datasets - Set All Dataset Connections In Group
汇报指定工作区中指定数据集的所有连接。 此 API 调用仅支持 SQL DirectQuery 数据集。
所需范围
Dataset.ReadWrite.All
限制
支持 SQL DirectQuery 数据集。
POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.SetAllConnections
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
dataset
|
path | True |
string |
数据集 ID |
group
|
path | True |
string uuid |
工作区 ID |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
connectionString | True |
string |
数据集连接字符串 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
示例
Example
Sample Request
POST https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/Default.SetAllConnections
{
"connectionString": "data source=MyServer.database.windows.net;initial catalog=MyDatabase;persist security info=True;encrypt=True;trustservercertificate=False"
}
Sample Response
定义
ConnectionDetails
连接字符串包装器
名称 | 类型 | 说明 |
---|---|---|
connectionString |
string |
数据集连接字符串 |