Skip to main content

Workflow sample - Retrieve a driver's definition

Available since 2021 Update 9

This workflow sample demonstrates how to retrieve a driver's definition in metadata.

tip

Obtain the authorization token needed to execute the request using POST /api/auth/login.

Obtain the driver's ID needed to execute the request using GET /api/drivers.

Retrieve a driver's definition GET /api/drivers/{id}

Sample Request Header:

"accept": "application/json"
"X-MSTR-AuthToken": "pisu5dkkutqfblaamdomgr00ch"

Sample Request Body: Empty

Sample Curl:

curl -X "GET" \
"http://demo.microstrategy.com/MicroStrategyLibrary/api/drivers/7358B0B8264A4B6198520B2BC0B6248B" \
-H "accept: application/json" \
-H "X-MSTR-AuthToken: pisu5dkkutqfblaamdomgr00ch"

Sample Response Body:

You can get a driver's definition in the body of the response.

{
"enabled": true,
"id": "7358B0B8264A4B6198520B2BC0B6248B",
"isODBC": false,
"name": "com.microstrategy.jdbc.db2.TestDriver"
}

Sample Response Code: 200