Stop the Scheduler Engine v2

post

/jderest/v2/scheduler/stop

Stop all currently running schedules and also stop the scheduler engine. IMPORTANT: If using a token for authentication, you must get the token using the v2 tokenrequest service and use the token for calls to all scheduler services.

Request

Supported Media Types
Header Parameters
Body ()
The input to the scheduler services.
Root Schema : SchedulerRequest
Type: object
The input to the scheduler services.
Show Source
Nested Schema : jobServicePath
Type: array
The service path for the job to be scheduled.
Show Source
Nested Schema : schedulerHosts
Type: array
A list of scheduler hosts.
Show Source
Nested Schema : schedulerServices
Type: array
A list of scheduler services.
Show Source
Nested Schema : SchedulerService
Type: object
The input to the scheduler services where a list is requested.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Execution

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Request

The following shows an example of a scheduler stop request, which stops all of the currently running jobs and the scheduler engine.

The token passed in this example was received from a separate token request. You can also use other supported authentication methods.

IMPORTANT: If using a token for authentication, you must get the token using the v2 tokenrequest service and use the token for calls to all scheduler services.


curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/scheduler/stop -d 

{   
    "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU="
}

        

Example Response

The following example shows the contents of the response body.

{"jobsstopped": [
      {
      "jobBaseUrl": "ais_server_url",
      "jobEndpointRequested": "ORC_1708110004TOOLS",
      "jobLastExecutionTimeMillis": 112,
      "jobLastExecutionDateTime": "2017-08-25 17:43:03.534",
      "jobServicePath":       [
         "jderest",
         "v2",
         "orchestrator"
      ],
      "jobNextFireTime": "2017-08-26 17:43:03 534",
      "jobTotalExecutions": 1,
      "jobTotalErrors": 0,
      "jobConsecutiveErrors": 0,
      "jobPercentageErrors": 0,
      "serviceShortEndpoint": "ORC_1708110004TOOLS",
      "serviceLongEndpoint": "Activate Demo",
      "omwServiceDescription": "Activate Demo",
      "omwScheduleDescription": "Run Once Daily",
      "scheduleIntervalMinutes": 1440,
      "jobgroup": "SCH_1708140001TOOLS",
      "jobname": "ORC_1708110004TOOLS"
   },
      {
      "jobBaseUrl": "ais_server_url",
      "jobEndpointRequested": "NTF_1708250001TOOLS",
      "jobLastExecutionTimeMillis": 191,
      "jobLastExecutionDateTime": "2017-08-25 17:43:03.29",
      "jobServicePath":       [
         "jderest",
         "v2",
         "notification"
      ],
      "jobNextFireTime": "2017-08-26 17:43:03 290",
      "jobTotalExecutions": 1,
      "jobTotalErrors": 0,
      "jobConsecutiveErrors": 0,
      "jobPercentageErrors": 0,
      "serviceShortEndpoint": "NTF_1708250001TOOLS",
      "serviceLongEndpoint": "DemoNotification",
      "omwServiceDescription": "DemoNotification",
      "omwScheduleDescription": "Run Once Daily",
      "scheduleIntervalMinutes": 1440,
      "jobgroup": "SCH_1708140001TOOLS",
      "jobname": "NTF_1708250001TOOLS"
   }
]}
        
Back to Top