Get data source (gateways)

 

Updated: June 23, 2017



Request | Response

The Get Data source operation returns a JSON object which includes information about a registered data source for a gateway.

GET https://api.powerbi.com/v1.0/myorg/gateways/{gateway_id}/datasources/{data_source_id}

Header

Authorization: Bearer eyJ0eX ... FWSXfwtQ

Uri parameter

NameDescriptionData Type
gateway_idGuid of the gateway to use. You can get the Gateway id from the Get Gateways operation.String
data_source_idGuid of the data source to get. You can get the Data source id from the Get data sources operation.String

Response will be a data source entity.

{
    "id": "2d2ba027-7e75-4940-9b2d-25ca2974b57d",
    "datasourceName": "Contoso Data Source",
    "gatewayId": "575effbc-4542-4def-8012-2d2a3a17d211",
    "datasourceType": "Sql|AnalysisServices|...",
    "connectionDetails": {"server":"serverName","database":"databaseName"},
    "credentialType": "Windows|Basic|...",
}

Status code

CodeDescription
200OK. Indicates success.
404Not found
403Unauthorized
500Internal service error

Content-Type

application/json

Show: