List Data Sources
List data sources for a given project. If project_id is not provided, uses the default project.
ReturnsExpand Collapse
List[DataSource]
component: Component
Component that implements the data source
class CloudAzStorageBlobDataSource: …
class CloudSharepointDataSource: …
exclude_path_patterns: Optional[List[str]]
List of regex patterns for file paths to exclude. Files whose paths (including filename) match any pattern will be excluded. Example: [‘/temp/’, ‘/backup/’, ‘.git/’, ‘.tmp$’, ’^~’]
class CloudConfluenceDataSource: …
failure_handling: Optional[FailureHandlingConfig]
Configuration for handling failures during processing. Key-value object controlling failure handling behaviors.
Example: { “skip_list_failures”: true }
Currently supports:
- skip_list_failures: Skip failed batches/lists and continue processing
sync_permissions: Optional[bool]
Whether to fetch space-level permissions (allowed users/groups) and attach them to document metadata for access control. Disable for Confluence Server/Data Center versions whose permission APIs are unavailable (e.g. the JSON-RPC API removed in Data Center 9.2.6+), which otherwise surface as 401 errors during sync.
class CloudJiraDataSource: …
class CloudJiraDataSourceV2: …
class CloudBoxDataSource: …
List Data Sources
import os
from llama_cloud import LlamaCloud
client = LlamaCloud(
api_key=os.environ.get("LLAMA_CLOUD_API_KEY"), # This is the default and can be omitted
)
data_sources = client.data_sources.list()
print(data_sources)[
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"component": {
"foo": "bar"
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"source_type": "AZURE_STORAGE_BLOB",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z",
"version_metadata": {
"reader_version": "1.0"
}
}
]Returns Examples
[
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"component": {
"foo": "bar"
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"source_type": "AZURE_STORAGE_BLOB",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z",
"version_metadata": {
"reader_version": "1.0"
}
}
]