Required. The parent, which owns this collection of batches.
Authorization requires the following IAM permission on the specified resource parent:
dataproc.batches.list
Query parameters
Parameters
pageSize
integer
Optional. The maximum number of batches to return in each response. The service may return fewer than this value. The default page size is 20; the maximum page size is 1000.
pageToken
string
Optional. A page token received from a previous batches.list call. Provide this token to retrieve the subsequent page.
filter
string
Optional. A filter for the batches to return in the response.
A filter is a logical expression constraining the values of various fields in each batch resource. Filters are case sensitive, and may contain multiple clauses combined with logical operators (AND/OR). Supported fields are batch_id, batch_uuid, state, create_time, and labels.
e.g. state = RUNNING and create_time < "2023-01-01T00:00:00Z" filters for batches in state RUNNING that were created before 2023-01-01. state = RUNNING and labels.environment=production filters for batches in state in a RUNNING state that have a production environment label.
Output only. The batches from the specified collection.
nextPageToken
string
A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.
unreachable[]
string
Output only. List of Batches that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.
[[["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-07-21 UTC."],[[["\u003cp\u003eThis API endpoint lists batch workloads within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eYou can filter the batch results by \u003ccode\u003ebatchId\u003c/code\u003e, \u003ccode\u003ebatchUuid\u003c/code\u003e, \u003ccode\u003estate\u003c/code\u003e, \u003ccode\u003ecreateTime\u003c/code\u003e, and \u003ccode\u003elabels\u003c/code\u003e, and you can order them by the creation time.\u003c/p\u003e\n"],["\u003cp\u003eThe response will include a list of batches, a token to fetch the next page of results, and a list of batches that were not included in the response.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize a request to list the batches, the \u003ccode\u003edataproc.batches.list\u003c/code\u003e IAM permission is required, and it requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request to list batches must be an HTTP \u003ccode\u003eGET\u003c/code\u003e request and does not require a request body, but takes in \u003ccode\u003eparent\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, \u003ccode\u003efilter\u003c/code\u003e, and \u003ccode\u003eorderBy\u003c/code\u003e parameters.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.batches.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListBatchesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists batch workloads.\n\n### HTTP request\n\n`GET https://dataproc.googleapis.com/v1/{parent=projects/*/locations/*}/batches`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of batch workloads.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]