Skip to main content

batch_job_executions

Creates, updates, deletes, gets or lists a batch_job_executions resource.

Overview

Namebatch_job_executions
TypeResource
Idaws.m2.batch_job_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe identifier of the application. (pattern: <code>^\S{1,80}$</code>)
batch_job_identifierobjectThe unique identifier of this batch job.
end_timestring (date-time)The timestamp when the batch job execution ended.
execution_idstringThe unique identifier for this batch job execution. (pattern: <code>^\S{1,80}$</code>)
job_idstringThe unique identifier for this batch job. (pattern: <code>^\S{1,100}$</code>)
job_namestringThe name of this batch job. (pattern: <code>^\S{1,100}$</code>)
job_step_restart_markerobjectThe step/procedure step information for the restart batch job operation.
job_typestringThe type of job. (VSE, JES2, JES3)
job_userstringThe user for the job. (pattern: <code>^\S{1,100}$</code>)
return_codestringThe batch job return code from either the Blu Age or Micro Focus runtime engines. For more information, see Batch return codes in the IBM WebSphere Application Server documentation.
start_timestring (date-time)The timestamp when the batch job execution started.
statusstringThe status of the batch job execution. (Submitting, Holding, Dispatching, Running, Cancelling, Cancelled, Succeeded, Failed, Purged, Succeeded With Warning)
status_reasonstringThe reason for the reported status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_batch_job_executionselectapplication_id, execution_id, regionGets the details of a specific batch job execution for a specific application.
list_batch_job_executionsselectapplication_id, regionexecutionIds, jobName, maxResults, nextToken, startedAfter, startedBefore, statusLists historical, current, and scheduled batch job executions for a specific application.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe unique identifier of the application.
execution_idstringThe unique identifier of the batch job execution.
regionstringAWS region (default: us-east-1)
executionIdsarrayThe unique identifier of each batch job execution.
jobNamestringThe name of each batch job execution.
maxResultsintegerThe maximum number of batch job executions to return.
nextTokenstringA pagination token to control the number of batch job executions displayed in the list.
startedAfterstring (date-time)The time after which the batch job executions started.
startedBeforestring (date-time)The time before the batch job executions started.
statusstringThe status of the batch job executions.

SELECT examples

Gets the details of a specific batch job execution for a specific application.

SELECT
application_id,
batch_job_identifier,
end_time,
execution_id,
job_id,
job_name,
job_step_restart_marker,
job_type,
job_user,
return_code,
start_time,
status,
status_reason
FROM aws.m2.batch_job_executions
WHERE application_id = '{{ application_id }}' -- required
AND execution_id = '{{ execution_id }}' -- required
AND region = '{{ region }}' -- required
;