Test Connectivity
This endpoint allows you to test if a given configuration can be used for a data source.
More specifically, the API will attempt to connect to a data source using the provided configuration, as it would during an indexing. This allows you to verify whether the stored settings and credentials are correct and the PAIS system can connect to the data source APIs, even before creating the data source.
To test the configuration of an existing data source, you can instead use the
/test-connection/<data-source>
endpoint.
Outcome of validating the connectivity.
"DataSourceTestConnectionResponse Object"
Data source connectivity result.
Details about the connectivity result, if any.
Validation Error
"HTTPValidationError Object"
detail
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/control/data-sources/test-connection