Forum Discussion
Missing Datasources from workspace-info-get-scan-result API
Hi All,
I am attempting to get the full details of the power bi environment for a client using the admin APIs and ADF. Everything seems to be working except for the data sources bit. When I use the workspace-info-get-scan-result API there are no JSON nodes for any of the data source info either at the top level for the datasourceInstances/misconfiguredDatasourceInstances or in the individual dataset nodes.
I get results if I try to get the data sources via the Dataset API.
Anecdotally the same code I am using worked fine for a different client 12 months ago. So I am unsure if it is a settings/permissions issue or if the API no longer supports getting the data this way.
Any suggestions would be welcome
Cheers
Rob
Hi Rob_Bitq ,
The result you get from the WorkspaceInfo GetScanResult API depends on the scanId you get using the WorkspaceInfo PostWorkspaceInfo API.
Please make sure that the scanid you get via WorkspaceInfo PostWorkspaceInfo API contains the information of the data source.
For more details, please refer to:
Admin - WorkspaceInfo PostWorkspaceInfo - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-jianboli-msftCommunity Support
Hi Rob_Bitq ,
The result you get from the WorkspaceInfo GetScanResult API depends on the scanId you get using the WorkspaceInfo PostWorkspaceInfo API.
Please make sure that the scanid you get via WorkspaceInfo PostWorkspaceInfo API contains the information of the data source.
For more details, please refer to:
Admin - WorkspaceInfo PostWorkspaceInfo - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Rob_BitqNew Member
Yep, that was it. I did have to turn on the lineage flag as well as the data source flag for it to work.