List Pipeline Files2
Deprecated
pipelines.files.list(strpipeline_id, FileListParams**kwargs) -> SyncPaginatedPipelineFiles[PipelineFile]
GET/api/v1/pipelines/{pipeline_id}/files2
Get files for a pipeline.
Args: pipeline_id: ID of the pipeline data_source_id: Optional filter by data source ID only_manually_uploaded: Filter for only manually uploaded files file_name_contains: Optional filter by file name (substring match) limit: Limit number of results offset: Offset for pagination order_by: Field to order by
Parameters
pipeline_id: str
data_source_id: Optional[str]
file_name_contains: Optional[str]
limit: Optional[int]
offset: Optional[int]
order_by: Optional[str]
Returns
List Pipeline Files2
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
)
page = client.pipelines.files.list(
pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
page = page.files[0]
print(page.id){
"files": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config_hash": {
"foo": {
"foo": "bar"
}
},
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"external_file_id": "external_file_id",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"file_size": 0,
"file_type": "x",
"indexed_page_count": 0,
"last_modified_at": "2019-12-27T18:11:19.117Z",
"name": "x",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"status": "NOT_STARTED",
"status_updated_at": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"limit": 0,
"offset": 0,
"total_count": 0
}Returns Examples
{
"files": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config_hash": {
"foo": {
"foo": "bar"
}
},
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"external_file_id": "external_file_id",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"file_size": 0,
"file_type": "x",
"indexed_page_count": 0,
"last_modified_at": "2019-12-27T18:11:19.117Z",
"name": "x",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"status": "NOT_STARTED",
"status_updated_at": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"limit": 0,
"offset": 0,
"total_count": 0
}