Creating a Job From JSON File
Create an OCI Batch job from a JSON file by using the Console or OCI CLI. You can also generate a complete JSON template, update the required values, and use it to submit new jobs.
The following steps start from a job pool. You can also start from the Job monitoring page: select Add jobs from JSON, then continue with the upload and submission steps below.
Use the following command to create a Batch job from a JSON file:
oci batch batch-job create --from-json file://<path_to_json_file>To generate a JSON template that contains all supported command options, run:
oci batch batch-job create --generate-full-command-json-inputSave the generated output to a JSON file, update the required values, and then use the file with the
--from-jsonoption.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateBatchJob operation to create a batch job. Provide the job configuration in the JSON request body.