Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mhani
Frequent Visitor

Get Datasources Power BI Rest API

Hi,

 

I am struggling to figure out if it is possible to get knowledge about the storage type of a data source. I see it is possible with the Get Datasets API (ContentProviderType) but I cannot find it per data source instead of per dataset.

 

Did any of you succeed in that? please let me know

 

Michael

2 REPLIES 2
mhani
Frequent Visitor

Hi @Anonymous 

 

Thanks for replying my post. 

 

I have been looking into these API's although I cannot find a way to get the storage type for each datasource in these.

 

As I see it, I will get the storage mode for the dataset in whole, and not the datasource.

So what I will get is:

Dataset id 1 (Composite model)

Datasource1 - SQL

Datasource2 - Sharepoint

Datasource3 - Excel

 

But what I want to get is:

Dataset id 1 (Composite model)

Datasource1 - SQL (Direct Query)

Datasource2 - Sharepoint (Import)

Datasource3 - Excel (Import)

 

So I want to get the datasource and then the type from the api. And not the storage mode for the complete dataset.

 

BR

Michael

Anonymous
Not applicable

Hi @mhani ,

 

I think you can try Power BI REST API as below.

For reference:

Datasets - Get Datasources

Datasets - Get Datasources In Group

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.