from meibelai import Meibelai
import os
with Meibelai(
api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:
res = m_client.datasources.get_datasource(datasource_id="<id>")
# Handle response
print(res){
"id": "<string>",
"customer_id": "<string>",
"project_id": "<string>",
"name": "<string>",
"description": "<string>",
"recurrence": "<string>",
"created_by": "<string>",
"created_at": "<string>",
"updated_by": "<string>",
"updated_at": "<string>",
"object_storage_config": {
"bucket": "<string>",
"prefix": "<string>",
"filters": {
"included_prefixes": [
"<string>"
],
"included_file_types": [
"<string>"
],
"recursive_prefixes": true,
"modified_date_start": "<string>",
"modified_date_end": "<string>",
"min_file_size": 123,
"max_file_size": 123
},
"gcs_config": {},
"s3_config": {
"role_arn": "<string>",
"region": "<string>"
}
},
"web_config": {
"baseURL": "<string>",
"javascriptRender": true,
"waitForSelector": "<string>",
"domains": [
{
"domain": "<string>",
"limitPattern": "<string>",
"excludePattern": "<string>",
"ingestible": true,
"expandable": true
}
],
"authentication": {
"username": "<string>",
"password": "<string>"
}
}
}from meibelai import Meibelai
import os
with Meibelai(
api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:
res = m_client.datasources.get_datasource(datasource_id="<id>")
# Handle response
print(res){
"id": "<string>",
"customer_id": "<string>",
"project_id": "<string>",
"name": "<string>",
"description": "<string>",
"recurrence": "<string>",
"created_by": "<string>",
"created_at": "<string>",
"updated_by": "<string>",
"updated_at": "<string>",
"object_storage_config": {
"bucket": "<string>",
"prefix": "<string>",
"filters": {
"included_prefixes": [
"<string>"
],
"included_file_types": [
"<string>"
],
"recursive_prefixes": true,
"modified_date_start": "<string>",
"modified_date_end": "<string>",
"min_file_size": 123,
"max_file_size": 123
},
"gcs_config": {},
"s3_config": {
"role_arn": "<string>",
"region": "<string>"
}
},
"web_config": {
"baseURL": "<string>",
"javascriptRender": true,
"waitForSelector": "<string>",
"domains": [
{
"domain": "<string>",
"limitPattern": "<string>",
"excludePattern": "<string>",
"ingestible": true,
"expandable": true
}
],
"authentication": {
"username": "<string>",
"password": "<string>"
}
}
}Successful Response
Datasource
ObjectStorageConfig
Show child attributes
ObjectStorageFilters
Show child attributes
DatasourceWebConfig
Show child attributes
Was this page helpful?