List source schedules

sourceSchedules(projectReference: String!, input: SourceSelectorInput): SourceScheduleList!

Requires project.runs.read.

Arguments

ArgumentTypeRequired
projectReferenceString!Yes
inputSourceSelectorInputNo

Input fields

input

SourceSelectorInput

FieldTypeRequiredDescription
sourceTargetKindSourceTargetKindNoThe source to read; default runtimeTargetKind, else project.
runtimeTargetKindRuntimeTargetKindNoUsed as the source to read when sourceTargetKind is omitted.
targetEnvironmentIdIDNoRequired with the kind environment.
targetBranchIdIDNoRequired with the kind preview_branch.

Response

Returns SourceScheduleList!. Open the type for its fields and nested types.

FieldTypeDescription
data[SourceSchedule!]!
pageInfoPageInfo!
diagnostics[ProjectSourceFileDiagnostic!]!Source files that could not be read as a schedule.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
query SourceSchedules($projectReference: String!, $input: SourceSelectorInput) {  sourceSchedules(projectReference: $projectReference, input: $input) {    data {      id      name      backoffLimit      concurrencyPolicy      config    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }    diagnostics {      code      details      kind      message      sourceId    }  }}
variables.json
{  "projectReference": "example"}