cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

How can I determine which datasets are using a gateway connection?

We're moving some servers around, and I'd like to know if there's a way to determine which datasets are using a specific gateway connection and/or if there's a way to change the server for a gateway connection with dropping and recreating.

 

Thanks,

Jason

4 REPLIES 4
Highlighted
Super User IV
Super User IV

Re: How can I determine which datasets are using a gateway connection?

Hi there

THis API will tell you which data sources are for which datasets. It also contains the GatewayID which will relate to your Gateway.

https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasourcesasadmin

This will give you the Gateway details:
https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/getgateways

This one might be the one to update the data sources
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Highlighted
Helper I
Helper I

Re: How can I determine which datasets are using a gateway connection?

That's great info, thanks! -- I haven't played much with the API yet.  I'm assuming I need to register an app before I have access to the REST APIs?  Is that approach appropriate even for internal ad-hoc utilities, etc., that aren't an app in the traditional sense (e.g. it'd be an internal "app" meant only for administrator and to query items that the above that can't readily be seen via the Service UI).

 

J

Highlighted
Regular Visitor

Re: How can I determine which datasets are using a gateway connection?

Were you able to successfully get the gateway information?  And if so, what were the steps you followed?  I'm totally out of my element with APIs.  Thanks

Highlighted
Super User IV
Super User IV

Re: How can I determine which datasets are using a gateway connection?

The way to do it manually is to go into each dataset, then click on Gateway Connection, it will show you which gateway it is using.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors