Get info for all database sources
GET {{baseUrl}}/api/datasources
Get information for all database sources. You obtain the authorization token needed to execute the request using POST /auth/login; you pass the authorization token in the request header. You can use query parameters to specify the datasource idsand the database types in form of list.
Body
PARAM
Key | Datatype | Required | Description |
id
|
null | Comma-separated string of datasources id | |
database.type
|
null | Comma-separated string of database types | |
fields
|
null | Comma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model. |
HEADERS
Key | Datatype | Required | Description |
X-MSTR-AuthToken
|
string | (Required) Authorization token |
RESPONSES
status OK
{
"datasources": [
{
"id": "FE0D1FDD7EA146DB954056FD72F04310",
"name": "Act! Essentials",
"description": "actessentialsoauth",
"dateCreated": "2018-08-16T20:34:43.000+0000",
"dateModified": "2021-10-30T18:24:13.000+0000",
"acg": 255,
"datasourceType": "normal",
"database": {
"type": "cloud_element",
"version": "default",
"connection": {
"name": "",
"id": "E1A9CB3D246441B4A6BD9B78B4BF022A",
"isEmbe Curl curl -X GET 'baseUrl/api/datasources?id=&database.type=&fields=' -H 'X-MSTR-AuthToken: authToken' ENDPOINTS |