View Service (Release 9.2.3.4)
This service displays all the notifications and orchestrations that you have UDO permissions to. This enables you to determine whether a job is scheduled and also to find out whether a job is currently running. Using filterScheduled=true parameter, you can view only the notifications and orchestration that have a schedule attached.
The End Point for this example is:
<URL>/jderest/v2/scheduler/view
In this example, <URL> is the AIS Server where the scheduler runs.
Service Body
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/scheduler/view filterScheduled=true -d { "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU=" }
Return Body
{ "scheduler": { "isResilient": true, "isStarted": true, "runningSinceUTC": "2019-03-04T20:23:37.613Z", "schedulerInstanceJobsExecuted": 11 }, "services": [{ "environment": "JDV920", "role": "*ALL", "deviceName": "127.0.0.1", "ssoEnabled": false, "username": "USER", "jobEndpointRequested": "NTF_1808170001TOOLS", "scheduleIntervalMinutes": -1, "jobServicePath": [ "jderest", "v2", "notification" ], "scheduleCronString": "0 0/1 * 1/1 * ? *", "omwScheduleDescription": "0 0/1 * 1/1 * ? *", "omwScheduleObjectName": "SCH_1808170001TOOLS", "omwScheduleLongName": "Cron Minutely", "omwScheduleOwner": "USER", "schedule": { "name": "Cron Minutely", "description": "0 0/1 * 1/1 * ? *", "omwObjectName": "SCH_1808170001TOOLS", "udoOwner": "USER", "cronString": "0 0/1 * 1/1 * ? *", "intervalType": "cronString" }, "omwServiceObjectName": "NTF_1808170001TOOLS", "omwServiceOwner": "USER", "omwServiceDescription": "UserMailingType", "serviceShortEndpoint": "NTF_1808170001TOOLS", "serviceLongEndpoint": "UserMailingType", "udoServiceType": "NOTIFICATION", "serviceScheduledInScheduler": true, "jobInScheduler": { "jobname": "NTF_1808170001TOOLS.USER.JDV920.*ALL", "jobgroup": "NTF_1808170001TOOLS", "jobVersion": "V2", "jobStartTimeUserLocale": "03/26/2019 02:40:50 PM", "jobStartTimeUTC": "2019-03-26T20:40:50.843Z", "jobNextFireTimeUserLocale": "03/26/2019 02:42:00 PM", "jobNextFireTimeUTC": "2019-03-26T20:42:00.000Z", "jobNextFireTime": "2019-03-26 14:42:00 0", "jobTotalExecutions": 86, "jobTotalCompletions": 86, "jobTotalErrors": 0, "jobConsecutiveErrors": 0, "jobPercentageErrors": 0, "udoServiceType": "NOTIFICATION", "jobEndpointRequested": "NTF_1808170001TOOLS", "omwServiceDescription": "UserMailingType", "jobServicePath": [ "jderest", "v2", "notification" ], "serviceShortEndpoint": "NTF_1808170001TOOLS", "serviceLongEndpoint": "UserMailingType", "jobLastExecutionBaseUrl": "http://127.0.0.1:7101", "jobBaseUrl": "http://127.0.0.1:7101", "omwScheduleDescription": "0 0/1 * 1/1 * ? *", "scheduleCronString": "0 0/1 * 1/1 * ? *", "scheduleIntervalMinutes": -1, "userName": "USER", "environment": "JDV920", "role": "*ALL" }, "executingInSchedulerInstance": { "serviceShortEndpoint": "NTF_1808170001TOOLS", "serviceLongEndpoint": "UserMailingType", "omwServiceDescription": "UserMailingType", "startTimeUTC": "2019-03-04T16:12:29.124Z", "fireTime": "2019-03-04 13:32:08 434", "fireTimeUTC": "2019-03-04T20:32:08.434Z", "exectionTime": "00:00:48.740", "executionMillis": 48740 } ] }