Azure Blob Storage
Load data from Azure Blob Storage.
Configure via UI
Configure via API / Client
- Python Client
- TypeScript Client
from llama_cloud.types import CloudAzStorageBlobDataSource
ds = {
'name': '<your-name>',
'source_type': 'AZURE_STORAGE_BLOB',
'component': CloudAzStorageBlobDataSource(
container_name='<container_name>',
account_url='<account_url>',
blob='<blob>', # optional
prefix='<prefix>', # optional
account_name='<account_name>',
account_key='<account_key>',
)
}
data_source = client.data_sources.create_data_source(request=ds)
const ds = {
'name': '<your-name>',
'sourceType': 'AZURE_STORAGE_BLOB',
'component': {
'container_name': '<container_name>',
'account_url': '<account_url>',
'blob': '<blob>', // optional
'prefix': '<prefix>', // optional
'account_name': '<account_name>',
'account_key': '<account_key>',
}
}
data_source = await client.dataSources.createDataSource({
body: ds
})