Show the details of a given datasource.
Request the detail information for a specific datasource. The response contains the datasource details as JSON.
RESPONSE Fields | Value Type | Description |
---|---|---|
title | string | The user visible name of the datasource |
alias | string | The user visible name of the datasource |
uuid | string | A unique identifier of the datasource |
permissions | array | A list of user/group IDs allowed to use the datasource |
type | string | The type of the datasource connection |
readonly | boolean | True, if the datasource can only be read |
additionalInformation | Object | A list of "key" / "value" entries with the specific properties of the given datasource. It includes only non-empty, non-restricted values. (e.g. user name and password are restricted) |
# Request # Use user:password for authorization GET /api/datasources/euxd8e7vfg2jqmrezk5i8gb12 HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response - details of the given datasource HTTP/1.1 200 OK Content-Type: application/json Content-Length: <LENGTH> { "title": "My Datasource", "alias": "My Datasource", "uuid": "euxd8e7vfg2jqmrezk5i8gb12", "permissions": [], "type": "MS SQL Server", "readonly": false, "additionalInformation": { "instance": "SQLEXPRESS", "dstsave": "true", "host": "DELL28", "secureLevel": "1", "useCursorsAlways": "false" } }
# Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/datasources/euxd8e7vfg2jqmrezk5i8gb12" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/datasources/euxd8e7vfg2jqmrezk5i8gb12"