March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I'm making a post to {baseUrl}/workspaces/{workspaceId}/semanticModels/{semanticModelId}/getDefinition and I get a 202 with a Location url in the response header. Then, I am doing a get to that Location url which looks like: https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}. That returns 200.
I get only this json though: {"status":"Succeeded","createdTimeUtc":"2024-11-07T15:41:21.2885946","lastUpdatedTimeUtc":"2024-11-07T15:41:21.8198463","percentComplete":100,"error":null}
How do I get the actual semantic model json? Is there any documentation of the handling of the 202? Maybe something else is required?
Solved! Go to Solution.
What you are describing in the behavior of long running operations in Microsoft Fabric APIs.
For APIs which return a result, like the "getDefinition", once the "Get Operation State" returns 200 with status:Succeeded, it will contain another URL for fetching the result. It should look like this in your case:
https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}/result
See this documentation for more details: Long running operations - Microsoft Fabric REST APIs | Microsoft Learn
What you are describing in the behavior of long running operations in Microsoft Fabric APIs.
For APIs which return a result, like the "getDefinition", once the "Get Operation State" returns 200 with status:Succeeded, it will contain another URL for fetching the result. It should look like this in your case:
https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}/result
See this documentation for more details: Long running operations - Microsoft Fabric REST APIs | Microsoft Learn
Seems to be an inofficial endpoint? The regular API still uses the "dataset" term.
Datasets - Get Dataset In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
9 | |
3 | |
2 | |
2 | |
2 |