Forum Discussion
can't get workspaceid
- 9 years ago
Per the documentation and my test, the correct URL to request the workspaces is as below.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces?api-version=2016-01-29And the authorization is still using an token, you can check the function GetWorkspaceCollectionMetadata in power-bi-embedded-integrate-report-into-web-app.
Per the documentation and my test, the correct URL to request the workspaces is as below.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces?api-version=2016-01-29
And the authorization is still using an token, you can check the function GetWorkspaceCollectionMetadata in power-bi-embedded-integrate-report-into-web-app.
Hi v-ivzhan-msft thank you for giving me response, can you please send me exact url for getting workspace id, already i saw this url( /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces?api-version=2016-01-29), but i don't know the hostname(like https://api.powerbi.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces?api-version=2016-01-29) for starting of this url
- Eric_Zhang9 years agoMicrosoft Employee
The host name is "https://management.azure.com".