Forum Discussion
smpa01
Community Champion
2 years agoRetrieve home-cluster-uri progrmatically
Is there any way to progrmatically retrieve the home-cluster-uri using any Power BI service calls (REST)? if there is a REST calls that returns this would be great.
Thank you in advance.
g...
lbendlin
Super User
2 years agoHalfway through this article How can I automate usage metrics without Admin APIs? (powerbiops.com) they mention a way to get the cluster URI.
let
Source = Json.Document(Web.Contents("https://api.powerbi.com/v1.0/myorg/datasets", [Headers=[Authorization="Bearer eyJ0eXAiOiJKV1Qixxx"]])),
Cluster = Source[#"@odata.context"]
in
Cluster