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.
in addition to what lbendlin already wrote correctly, the `@odata.context` property is returned as a part of all API calls
if thats what you are referring to as home-cluster-uri
2 Replies
- lbendlin
Super 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