Use the following method to list jobs, either all jobs managed by the scheduler or the jobs for a specific report:
Method |
URL |
||
GET |
http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/path/to/report |
||
Return Value on Success |
Typical Return Values on Failure |
||
200 OK – The body contains XML that describes jobs in the scheduler. |
404 Not Found – When no job is not found in the server. |
The jobs are described in the jobsummary element such as the following example:
|
The jobsummary XML element returned by the rest_v2/jobs service has a different structure than the element with the same name returned by the rest/jobsummary service. |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <jobs> <jobsummary> <id>2042</id> <label>JUnit_Job_New</label> <reportUnitURI>/organizations/organization_1/reports/samples/AllAccounts </reportUnitURI> <state> <nextFireTime>2222-02-04T13:47:00+02:00</nextFireTime> <value>NORMAL</value> </state> <version>1</version> </jobsummary> </jobs> |