TIL: FabricRestClient Supports Long Running Operations
Calling Fabric and Power BI APIs that support LRO using Semantic-Link
I want to thank Michael Kovalsky for pointing out that FabricRestClient in Semantic Link supports (since v 0.7.5) Long Running Operation (LRO).
For any Fabric APIs that support LRO, you just need to pass lro_wait=True

Example:
Below API returns Fabric notebook definition
%pip install semantic-link
import sempy.fabric as fabric
client = fabric.FabricRestClient()
response = client.post(f"v1/workspaces/<ws>/notebooks/<nb>/getDefinition", lro_wait = True)
response

If you would like to learn more about Semantic Link and Semantic Link Labs, watch this excellent session by Michael:
Notes:
TIL : Today I Learned
Search this for all the Fabric APIs
About the author
Principal Program Manager, Microsoft Fabric CAT helping users and organizations build scalable, insightful, secure solutions. Blogs, opinions are my own and do not represent my employer.
Comments
Join the discussionNo comments yet. Be the first to comment.