Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48330

Re: Automating Power BI Gateway administration by using Powershell

$
0
0

Hi 

 

I am trying to create a datasource from gateway, below is the request:

 

POST https://api.powerbi.com/v1.0/myorg/gateways/{gateway-id/datasources


{
"dataSourceType": "Oracle",
"connectionDetails": "{\"server\":\"myserver\"}",
"datasourceName": "PostAPI Datasource",
"credentialDetails": {
"credentialType": "Basic",
"credentials": "encryptedvalue",
"encryptedConnection": "Encrypted",
"encryptionAlgorithm": "RSA-OAEP",
"privacyLevel": "None"
}
}

 

I am receiving the following error: 400 bad request 

{
    "error": {
        "code": "DM_GWPipeline_Gateway_DataSourceAccessError",
        "pbi.error": {
            "code": "DM_GWPipeline_Gateway_DataSourceAccessError",
            "parameters": {},
            "details": [],
            "exceptionCulprit": 1
        }
    }
}

Could anyone please help!

Thank you.


Viewing all articles
Browse latest Browse all 48330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>