Go to primary content
Oracle® Retail Job Orchestration and Scheduler Cloud Service Implementation Guide Oracle® Retail Job Orchestration and Scheduler Cloud Service Implementation Guide
Release 19.1.000
F31814-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

C Appendix C: Job Admin REST Endpoints

Batch service is a RESTful service that provides various endpoints to manage batch jobs in Job Admin. The endpoint discover can be used to identify all endpoints provided by Job Admin.

Table C-1 REST Resource Descriptions

REST Resource HTTP Method Description

/discover

GET

Lists all available endpoints in Job Admin

/batch/jobs

GET

Gets all available batch jobs

/batch/jobs/enable-disable

POST

Enable or disable jobs

/batch/jobs/{jobName}

GET

Gets all instances for a job

/batch/jobs/{jobName}/executions

GET

Gets all executions for a job

/batch/jobs/executions

GET

Gets all executions

batch/jobs/currently-running-jobs

GET

Gets currently running jobs

/batch/jobs/{jobName}/{jobInstanceId}/executions

GET

Gets job executions for a job instance

/batch/jobs/{jobName}/{jobExecutionId}

GET

Gets job instance and execution for a job execution ID

/batch/jobs/{jobName}

POST

Starts a job asynchronously

/batch/jobs/executions/{jobExecutionId}

POST

Restarts a stopped or failed job

/batch/jobs/executions

DELETE

Stops all running job executions

/batch/jobs/executions/{jobExecutionId}

DELETE

Stops a job execution

/batch/jobs/executions/{jobExecutionId}

GET

Gets execution steps with details

/batch/jobs/executions/{jobExecutionId}/steps

GET

Gets execution steps

/batch/jobs/executions/{jobExecutionId}/steps/{stepExecutionId}

GET

Gets step details

/batch/jobs/job-def-xml-files

GET

Gets all job XML files

/telemetry/jobs

GET

Returns runtime job metrics between fromTime and toTime

batch/jobs/job-def-xml/{jobName}

PUT

Creates an entry in BDI_JOB_DEFINITION table. It will throw an exception if job already exists.

batch/jobs/job-def-xml/{jobName}

POST

Updates an entry in BDI_JOB_DEFINITION table. It will update if job is not in running state. This end point throws an exception if job doesn't exist in the table

batch/jobs/job-def-xml/{jobName}

DELETE

Deletes an entry in BDI_JOB_DEFINITION table. It will delete if job is not in running state and if there is no history in batch database.

batch/jobs/{jobName}

DELETE

Deletes history for a job from batch database. It will delete history if job is not in running state.

/batch/jobs/bulk/job-definitions

POST

End point for bulk create/update job definitions

/batch/jobs/bulk/job-definitions

DELETE

End point for bulk delete job definitions