Response
200 - application/json
successful operation
The response is of type object[].
import requests
url = "https://{FUSION HOST}/api/scheduler/jobs"
response = requests.get(url)
print(response.json())[
{
"id": "2",
"trigger": "2_1400011854443_-9223372036854775807",
"schedule": {
"id": "2",
"creatorType": "human",
"creatorId": "admin1",
"createTime": "2014-05-13T20:10:54.443Z",
"startTime": "2014-05-13T20:10:54.443Z",
"endTime": null,
"repeatUnit": "HOUR",
"interval": 1,
"active": true,
"callParams": {
"uri": "solr://demo/update",
"method": "GET",
"queryParams": {
"stream.body": "<commit/>"
},
"headers": {},
"entity": null
}
}
},
{
"id": "1",
"trigger": "1_1400007488512_-9223372036854775808",
"schedule": {
"id": "1",
"creatorType": "human",
"creatorId": "admin1",
"createTime": "2014-05-13T18:58:08.512Z",
"startTime": "2014-05-13T18:58:08.512Z",
"endTime": null,
"repeatUnit": "DAY",
"interval": 1,
"active": true,
"callParams": {
"uri": "service://connectors/jobs/LocalDocs2",
"method": "POST",
"queryParams": {},
"headers": {},
"entity": null
}
}
}
]List all currently-running jobs.
import requests
url = "https://{FUSION HOST}/api/scheduler/jobs"
response = requests.get(url)
print(response.json())[
{
"id": "2",
"trigger": "2_1400011854443_-9223372036854775807",
"schedule": {
"id": "2",
"creatorType": "human",
"creatorId": "admin1",
"createTime": "2014-05-13T20:10:54.443Z",
"startTime": "2014-05-13T20:10:54.443Z",
"endTime": null,
"repeatUnit": "HOUR",
"interval": 1,
"active": true,
"callParams": {
"uri": "solr://demo/update",
"method": "GET",
"queryParams": {
"stream.body": "<commit/>"
},
"headers": {},
"entity": null
}
}
},
{
"id": "1",
"trigger": "1_1400007488512_-9223372036854775808",
"schedule": {
"id": "1",
"creatorType": "human",
"creatorId": "admin1",
"createTime": "2014-05-13T18:58:08.512Z",
"startTime": "2014-05-13T18:58:08.512Z",
"endTime": null,
"repeatUnit": "DAY",
"interval": 1,
"active": true,
"callParams": {
"uri": "service://connectors/jobs/LocalDocs2",
"method": "POST",
"queryParams": {},
"headers": {},
"entity": null
}
}
}
]successful operation
The response is of type object[].
Was this page helpful?