- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- JobStateMatcher
- Try it!
Lists regions/{region}/jobs in a project.
HTTP request
GET https://dataproc.googleapis.com/v1/projects/{projectId}/regions/{region}/jobs
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Required. The ID of the Google Cloud Platform project that the job belongs to. Authorization requires the following IAM permission on the specified resource
|
region |
Required. The Dataproc region in which to handle the request. |
Query parameters
Parameters | |
---|---|
page |
Optional. The number of results to return in each response. |
page |
Optional. The page token, returned by a previous call, to request the next page of results. |
cluster |
Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster. |
job |
Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs). If |
filter |
Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax: [field = value] AND [field [= value]] ... where field is Example filter: status.state = ACTIVE AND labels.env = staging AND labels.starred = * |
Request body
The request body must be empty.
Response body
A list of jobs in a project.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"jobs": [
{
object ( |
Fields | |
---|---|
jobs[] |
Output only. Jobs list. |
next |
Optional. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the
. |
unreachable[] |
Output only. List of jobs with |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
JobStateMatcher
A matcher that specifies categories of job states.
Enums | |
---|---|
ALL |
Match all jobs, regardless of state. |
ACTIVE |
Only match jobs in non-terminal states: PENDING, RUNNING, or CANCEL_PENDING. |
NON_ACTIVE |
Only match jobs in terminal states: CANCELLED, DONE, or ERROR. |