Schedule
This endpoint is used to create, update, search or delete schedules for a particular workspace inside an organization, this is useful when you need to create schedule task or running jobs in a particular time.
Entity fields:
data.type
string
Should be "template"
data.attributes.cron
string
Cron expression to schedule a job inside a workspace. For more information please visit Quartz documentation.
data.attributes.tcl
string
Terrakube configuration language in base64
data.attributes.templateReference
string
Terrakube template id
To better understand Terrakube Configuration Language job templates please refer to the following GitHub repository.
Example:
Supported Operations
Returns an instance of type schedule
/workspace/{workspaceId}/schedule/{scheduleId}
workspace Identifier
schedule Identifier
Selects the set of schedule fields that should be returned in the result.
Selects the set of relationships that should be expanded as a compound document in the result.
Creates an item of type schedule and adds it to schedule
/workspace/{workspaceId}/schedule
workspace Identifier
Deletes an instance of type schedule
/workspace/{workspaceId}/schedule/{scheduleId}
workspace Identifier
schedule Identifier
No body
Modifies an instance of type schedule
/workspace/{workspaceId}/schedule/{scheduleId}
workspace Identifier
schedule Identifier
No body
For a complete list of organization operation please visit the OpenAPI specification
Was this helpful?