Skip to main content

Datasource Config

Gather information about the datasource's config.

Sample Request

curl -X POST https://customer-be.glean.com/api/index/v1/getdatasourceconfig \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type : application/json' \
-d '{
"datasource": "gleantest"
}'

Sample Response

{
"name": "CUSTOM_GLEANTEST",
"displayName": "Glean Test Datasource",
"homeUrl": "https://www.gleantest.com",
"objectDefinitions": [
{
"name": "EngineeringDoc",
"propertyDefinitions": [
{
"name": "Org",
"displayLabel": "Organization",
"propertyType": "TEXT",
"uiOptions": "SEARCH_RESULT",
"hideUiFacet": false
}
]
}
],
"urlRegex": "https://www.gleantest.com/.*",
"datasourceCategory": "PUBLISHED_CONTENT",
"isOnPrem": false,
"isUserReferencedByEmail": true,
"isEntityDatasource": false,
"isTestDatasource": false
}
  • /getdatasourceconfig endpoint returns the current state of the datasource config.
  • This can be used to double-check if the config is correct. If you need to make any changes to the config, you can use the /adddatasource endpoint again to override the previous config.