Skip to main content
POST
/
data_connector
/
list
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
list_vdb_connector = client.data_source.list()
print(list_vdb_connector.connectors)
import UnstructuredClient from 'unstructured-sdk';

const client = new UnstructuredClient({
  authMethod: 'My Auth Method',
  username: process.env['UNSTRUCTURED_USERNAME'], // This is the default and can be omitted
  password: process.env['UNSTRUCTURED_PASSWORD'], // This is the default and can be omitted
});

const listVdbConnector = await client.dataSource.list();

console.log(listVdbConnector.connectors);
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
{
  "connectors": {}
}
{
  "detail": "<string>"
}
{
  "detail": "<string>"
}
{
  "detail": "<string>"
}
{
  "detail": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Response

Successful Response

connectors
Connectors · object
required