import requests
url = "https://{FUSION HOST}/api/jobs/{resource}/schedule"
response = requests.get(url)
print(response.text){
"resource": "<string>",
"enabled": true,
"triggers": [
{
"enabled": true,
"type": "interval",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"interval": 123,
"repeatUnit": "minute",
"value": "<string>",
"jobID": "<string>",
"runOnSuccess": true,
"runOnFailure": true,
"runOnAbort": true
}
],
"default": true
}Get the schedule for the specified job.
import requests
url = "https://{FUSION HOST}/api/jobs/{resource}/schedule"
response = requests.get(url)
print(response.text){
"resource": "<string>",
"enabled": true,
"triggers": [
{
"enabled": true,
"type": "interval",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"interval": 123,
"repeatUnit": "minute",
"value": "<string>",
"jobID": "<string>",
"runOnSuccess": true,
"runOnFailure": true,
"runOnAbort": true
}
],
"default": true
}The job ID.
successful operation
Resource reference as a string, such as 'datasource:ratings-db'
Show child attributes
interval, cron, job The date and time at which the job will first run (ISO-8601 format). Applies to type 'interval'.
The date and time at which the job will run last (ISO-8601 format). Applies to type 'interval'.
The interval at which the job will run. Applies to type 'interval'.
The unit for the interval. Applies to type 'interval'.
minute, hour, day A cron string that defines the schedule. Applies to type 'cron'.
The ID of the job that triggers this one. Applies to type 'job'.
Run this job when the triggering job succeeds. Applies to type 'job'.
Run this job when the triggering job fails. Applies to type 'job'.
Run this job when the triggering job is aborted. Applies to type 'job'.
Was this page helpful?