Required. The ID of the Google Cloud Platform project that the cluster belongs to.
Authorization requires the following IAM permission on the specified resource projectId:
dataproc.clusters.list
region
string
Required. The Dataproc region in which to handle the request.
Query parameters
Parameters
filter
string
Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:
field = value [AND [field = value]] ...
where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.
Example filter:
status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *
pageSize
integer
Optional. The standard List page size.
pageToken
string
Optional. The standard List page token.
Request body
The request body must be empty.
Response body
The list of all clusters in a project.
If successful, the response body contains data with the following structure:
Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the pageToken in a subsequent ListClustersRequest.
[[["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-20 UTC."],[[["\u003cp\u003eThis API endpoint lists all clusters within a specified project and region alphabetically.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request utilizes \u003ccode\u003eGET\u003c/code\u003e method with a specific URL structure including project and region identifiers as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eOptional query parameters, such as \u003ccode\u003efilter\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, and \u003ccode\u003epageToken\u003c/code\u003e, can be used to refine the cluster list based on criteria like status, name, or labels and also for pagination purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the successful response contains a list of cluster objects and an optional \u003ccode\u003enextPageToken\u003c/code\u003e for pagination.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003edataproc.clusters.list\u003c/code\u003e IAM permission on the specified project and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.regions.clusters.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.ListClustersResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists all regions/{region}/clusters in a project alphabetically.\n\n### HTTP request\n\n`GET https://dataproc.googleapis.com/v1/projects/{projectId}/regions/{region}/clusters`\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\nThe list of all clusters in a project.\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)."]]