# Method: projects.locations.jobs.list

- [HTTP request](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.request_body)
- [Response body](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.ListJobsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#try-it)

Lists jobs.

### HTTP request

`GET https://cloudscheduler.googleapis.com/v1beta1/{parent=projects/*/locations/*}/jobs`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `cloudscheduler.jobs.list` |

### Query parameters

| Parameters ||
|---|---|
| `filter` | `string` `filter` can be used to specify a subset of jobs. If `filter` equals `target_config="HttpConfig"`, then the http target jobs are retrieved. If `filter` equals `target_config="PubSubConfig"`, then the Pub/Sub target jobs are retrieved. If `filter` equals `labels.foo=value1 labels.foo=value2` then only jobs which are labeled with foo=value1 AND foo=value2 will be returned. |
| `pageSize` | `integer` Requested page size. The maximum page size is 500. If unspecified, the page size will be the maximum. Fewer jobs than requested might be returned, even if more jobs exist; use nextPageToken to determine if more jobs exist. |
| `pageToken` | `string` A token identifying a page of results the server will return. To request the first page results, pageToken must be empty. To request the next page of results, pageToken must be the value of `https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.ListJobsResponse.FIELDS.next_page_token` returned from the previous call to `https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs`. It is an error to switch the value of `https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.QUERY_PARAMETERS.filter` or `orderBy` while iterating through pages. |
| `legacyAppEngineCron` | `boolean` This field is used to manage the legacy App Engine Cron jobs using the Cloud Scheduler API. If the field is set to true, the jobs in the __cron queue will be listed instead. |

### Request body

The request body must be empty.

### Response body

Response message for listing jobs using `https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs`.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "jobs": [ { object (`https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs#Job`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `jobs[]` | ``object (`https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs#Job`)`` The list of jobs. |
| `nextPageToken` | `string` A token to retrieve next page of results. Pass this value in the `https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#body.QUERY_PARAMETERS.page_token` field in the subsequent call to `https://docs.cloud.google.com/scheduler/docs/reference/rest/v1beta1/projects.locations.jobs/list#google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs` to retrieve the next page of results. If this is empty it indicates that there are no more results through which to paginate. The page token is valid for only 2 hours. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/cloud-scheduler`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).