Forum Discussion
smpa01
2 years agoCommunity Champion
Retrieve 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
2 years agoSuper User
Halfway 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