Search documentation
karat

+

K

User Documentation ↗
Version 2.0

List Runs Of Schedule

GET/api/v2/orchestration/schedules/{scheduleRid}/runs

Get the most recent runs of a Schedule. If no page size is provided, a page size of 100 will be used.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:orchestration-read.

Path parameters

scheduleRid
string

The RID of a Schedule.

Query parameters

pageSize
integer
optional

The page size to use for the endpoint.

pageToken
string
optional

The page token indicates where to start paging. This should be omitted from the first page's request. To fetch the next page, clients should take the value from the nextPageToken field of the previous response and use it to populate the pageToken field of the next request.

Response body

ListRunsOfScheduleResponse
object
Hide child attributes

Hide child attributes

data
list<ScheduleRun>
optional
Show child attributes

Show child attributes

nextPageToken
string
optional

The page token indicates where to start paging. This should be omitted from the first page's request. To fetch the next page, clients should take the value from the nextPageToken field of the previous response and use it to populate the pageToken field of the next request.

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/orchestration/schedules/ri.scheduler.main.schedule.5ad5c340-59f3-4a60-9fc6-161bb984f871/runs"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 { "data": [ { "scheduleVersionRid": "ri.scheduler.main.schedule-version.4d1eb55f-6c13-411c-a911-5d84e08d8017", "createdBy": "f05f8da4-b84c-4fca-9c77-8af0b13d11de", "scheduleRid": "ri.scheduler.main.schedule.5ad5c340-59f3-4a60-9fc6-161bb984f871", "createdTime": "2003-05-06T12:34:56.789Z", "rid": "ri.scheduler.main.run.d2a5e9c6-298d-4788-a71d-42885d7bebb3" } ], "nextPageToken": "v1.QnVpbGQgdGhlIEZ1dHVyZTogaHR0cHM6Ly93d3cucGFsYW50aXIuY29tL2NhcmVlcnMvP2xldmVyLXNvdXJjZSU1YiU1ZD1BUElEb2NzI29wZW4tcG9zaXRpb25z" }