Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I want to get a complete list of all the reports published in Power BI Service, along with their data sources.
What I already know:
1. I can send the following request to receive a list of reports: "GET https://api.powerbi.com/v1.0/myorg/reports"
2. The above response also contains "datasetID"
3. I can then pass individual dataset IDs and call: "GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/datasources"
4. Use powershell to loop throught step 3 for all the datasetIDs returned in step 1
My question: Is the above approach my only option I have? Is there any better efficient API method?
Appreciate your help.
Regards,
Garry
A combination of PostWorkspaceInfo, GetScanStatus, and GetScanResult will get you the result in three API requests (see below).
Note that, for table details, you need to enable tenant settings for metadata scanning.
Admin - WorkspaceInfo PostWorkspaceInfo - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Admin - WorkspaceInfo GetScanStatus - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Admin - WorkspaceInfo GetScanResult - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Hi, @soulofdata
Yes. I am afraid there is no other more efficient API.
The above approach maybe the only option.
You can view all PowerBI Restful APIs listed in the documentation below.
Best Regards,
Community Support Team _ Eason
User | Count |
---|---|
47 | |
30 | |
26 | |
26 | |
26 |
User | Count |
---|---|
58 | |
55 | |
36 | |
33 | |
28 |