Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

API(Datasets - Get Gateway Datasources In Group) doesnt work - returns 401

Following API returns 404 not found

 

https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetKey}/Default.GetBoundGatewayDat...

 

HistoryId: 60

Message        : Response status code does not indicate success: 404 (Not Found).
StackTrace     :    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
                    at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.<InvokeRestMethod>d__31.MoveNext()
Exception      : System.Net.Http.HttpRequestException
InvocationInfo : {Invoke-PowerBIRestMethod}
Line           : $rawResult = Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/admin/groups/f7148777-c918-4716-9b70-05059dfef480/datasets/00e2cf..." -Method
                 Get
Position       : At line:1 char:14
                 + ... rawResult = Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1 ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 60

 

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @mganeshphani,

 

I'm not able to reproduce the issue on my side. Would you please test it again? 

 

q5.PNG

 

q4.PNG

 

Best Regards,
Qiuyun Yu 

v-qiuyu-msft
Community Support

Hi @mganeshphani,

 

The Datasets - Get Gateway Datasources API works on my side, would you please test it again? Please check if the dataset ID is correct. 

 

q8.PNG

 

Best Regards,
Qiuyun Yu 

ajagirdar
Regular Visitor

I am able to use this as my user but not as a ServicePrincipal