Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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