Method: schedules.list

Full name: projects.locations.schedules.list

Lists Schedules in a Location.

Endpoint

gethttps://{service-endpoint}/v1/{parent}/schedules

Where{service-endpoint} is one of thesupported service endpoints.

Path parameters

parentstring

Required. The resource name of the Location to list the Schedules from. Format:projects/{project}/locations/{location}

Query parameters

filterstring

Lists the Schedules that match the filter expression. The following fields are supported:

  • displayName: Supports=,!= comparisons, and: wildcard.
  • state: Supports= and!= comparisons.
  • request: Supports existence of the check. (e.g.createPipelineJobRequest:* --> Schedule has createPipelineJobRequest).
  • createTime: Supports=,!=,<,>,<=, and>= comparisons. Values must be in RFC 3339 format.
  • startTime: Supports=,!=,<,>,<=, and>= comparisons. Values must be in RFC 3339 format.
  • endTime: Supports=,!=,<,>,<=,>= comparisons and:* existence check. Values must be in RFC 3339 format.
  • nextRunTime: Supports=,!=,<,>,<=, and>= comparisons. Values must be in RFC 3339 format.

Filter expressions can be combined together using logical operators (NOT,AND &OR). The syntax to define filter expression is based onhttps://google.aip.dev/160.

Examples:

  • state="ACTIVE" AND displayName:"my_schedule_*"
  • NOT displayName="my_schedule"
  • createTime>"2021-05-18T00:00:00Z"
  • endTime>"2021-05-18T00:00:00Z" OR NOT endTime:*
  • createPipelineJobRequest:*
pageSizeinteger

The standard list page size. Default to 100 if not specified.

pageTokenstring

The standard list page token. Typically obtained viaListSchedulesResponse.next_page_token of the previousScheduleService.ListSchedules call.

orderBystring

A comma-separated list of fields to order by. The default sort order is in ascending order. Use "desc" after a field name for descending. You can have multiple orderBy fields provided.

For example, using "createTime desc, endTime" will order results by create time in descending order, and if there are multiple schedules having the same create time, order them by the end time in ascending order.

If orderBy is not specified, it will order by default with createTime in descending order.

Supported fields:

  • createTime
  • startTime
  • endTime
  • nextRunTime

Request body

The request body must be empty.

Response body

Response message forScheduleService.ListSchedules

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

Fields
schedules[]object (Schedule)

List of Schedules in the requested page.

nextPageTokenstring

A token to retrieve the next page of results. Pass toListSchedulesRequest.page_token to obtain that page.

JSON representation
{"schedules":[{object (Schedule)}],"nextPageToken":string}

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.