Reports - Export Report
将指定的报表从 “我的”工作区 导出到 Power BI .pbix 或 .rdl 文件。
- 对于 .pbix 报告 - 作为超时问题的 解决方法 ,请将
preferClientRoutingURL 查询参数设置为true。 - 大型文件将下载到临时 Blob。 响应中返回其 URL,并存储在本地下载的 Power BI .pbix 文件中。
- 有关要求和限制的详细信息,请参阅 将报表从 Power BI 服务下载到 Power BI Desktop。
注释
此 API 不支持试用功能。 有关如何使用此 API 的示例,请参阅 导出 Power BI 报表 Powershell 脚本。
所需范围
Report.ReadWrite.All 或 Report.Read.All 和 Dataset.Read.All
局限性
对于 .pbix 报表,调用 Rebind 报表后,不支持导出具有 Power BI 服务实时连接的 报表。
GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/Export
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
report
|
path | True |
string (uuid) |
报表 ID |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
file |
导出的文件 Media Types: "application/zip", "application/octet-stream" |