Forum Discussion
jaapinho
5 years agoRegular Visitor
Rest API / Powershell : Unable to create Datasource in Gateway (OnPremises)
Hello, I'm using this code : $url = "gateways/MYGateway/datasources" $body = @{ datasourceName = "MYDatasource" datasourceType = "SQL" connectionDetails = '{"server":"MY...
- 5 years ago
Hi, MYgateway represents my gateway ID (Which i couldnt put here). But problem is solved. creds hash was miscalculated.
Thank you
lbendlin
Super User
5 years agothere is no such thing as MyGateway. Did you mean to call Gateways - Create Datasource (Power BI Power BI REST APIs) | Microsoft Docs ?