[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# Method: ragFiles.list\n\n**Full name**: projects.locations.ragCorpora.ragFiles.list\n\nLists RagFiles in a RagCorpus. \n\n### Endpoint\n\nget `https:``/``/{service-endpoint}``/v1beta1``/{parent}``/ragFiles` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`parent` `string` \nRequired. The resource name of the RagCorpus from which to list the RagFiles. Format: `projects/{project}/locations/{location}/ragCorpora/{ragCorpus}`\n\n### Query parameters\n\n`pageSize` `integer` \nOptional. The standard list page size.\n`pageToken` `string` \nOptional. The standard list page token. Typically obtained via [ListRagFilesResponse.next_page_token](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles/list#body.ListRagFilesResponse.FIELDS.next_page_token) of the previous [VertexRagDataService.ListRagFiles](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles/list#google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagFiles) call.\n\n### Request body\n\nThe request body must be empty. \n\n### Response body\n\nResponse message for [VertexRagDataService.ListRagFiles](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles/list#google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagFiles).\n\nIf successful, the response body contains data with the following structure:\nFields `ragFiles[]` `object (`[RagFile](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles#RagFile)`)` \nList of RagFiles in the requested page.\n`nextPageToken` `string` \nA token to retrieve the next page of results. Pass to [ListRagFilesRequest.page_token](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles/list#body.QUERY_PARAMETERS.page_token) to obtain that page."]]