Logo
MicroStrategy REST API API Documentation

Get info for a specific database connection map

GET {{baseUrl}}/api/datasources/mappings?projectId={{projectId}}

Get information for a specific database connection map. You obtain the authorization token needed to execute the request using POST /auth/login; You pass the authorization token in the request header. You need to provide projectId if default Connection map type is set to true. For user-defined connection map links, projectId is optional parameter for it.

 

Body PARAM

Key Datatype Required Description 
defaultConnectionMap
boolean Connection map type
projectId
string Project ID
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

{ "mappings": [ { "id": "NTpCN0NBOTJGMDRCOUZBRThEOTQxQzNFOUI3RTBDRDc1NDo3RkMwNUE2NTQ3M0NFMkZEODQ1Q0U2QTFEM0YxMzIzMzpCNUZCQzM1RjFCNDM5RjVBNEU2QUM0QjA3MjE5M0M5NjpEQUQ2Q0FENjQ1N0RBRjI5RTM0NDYzOTYxNjg4RUE2MDpGNDBDMjFGMTVBNEQ5NkJDQUYxMDJDQjQwOEE4NzcxMzowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMA==", "projectId": "B7CA92F04B9FAE8D941C3E9B7E0CD754", "connection": { "name": "Test Datasource Connection", "id": "B5FBC35F1B439F5A4E6AC4B072193C96" }, "datasource": { "name": "Advanced Data Warehousing Warehouse", &q
Curl
curl -X GET 'baseUrl/api/datasources/mappings?projectId=projectId?defaultConnectionMap=false&projectId=projectId&fields=' -H 'X-MSTR-AuthToken: authToken'

ENDPOINTS