List steps
get
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/jobs/{jobId}/executions/{executionId}/steps
Get a list of steps. Use path parameters jobId=all and executionId=all to list steps across all jobs and executions when specific IDs are not supplied.
The endpoint path is `/jobs/{jobId}/executions/{executionId}/steps`; there is no `/jobs/steps` endpoint.
The path parameters are required. Never call this endpoint with literal placeholders such as `{jobId}` or `{executionId}`. If the user asks for all steps, steps across jobs, steps across executions, or steps with errors and does not provide IDs, set `jobId=all` and `executionId=all`.
When the user asks for scheduled steps in a time window, treat it as a step query. This includes windows such as next minute, next hour, today, tomorrow, next day, next week, next month, or explicit start/end timestamps. Call ListSteps with jobId=all and executionId=all when specific IDs are not supplied, statusDisplayName=SCHEDULED, and the appropriate startTimeGreaterThan/startTimeLessThan bounds. `jobId` and `executionId` are path parameters, not query parameters: generate `/jobs/all/executions/all/steps?...`, never `/jobs/executions/steps?jobId=all&executionId=all...` and never `/jobs/steps?...`. Never call this endpoint with literal `{jobId}` or `{executionId}` placeholders.
When presenting scheduled step results, render the actual `items[]` returned by the response. Include `stepId`, `executionId`, `jobId`, `jobName`, `name`, `statusDisplayName`, and `startTime` so repeated step names or recurring executions are distinguishable. Do not duplicate the first item, do not invent rows, and do not summarize the rest as "same pattern" unless the returned items are actually identical.
For the first page, do not pass `page`; `page` is optional and only used for subsequent pages when copied from a previous response's `links.next` or `nextPage`.
To find steps with non-empty error messages, call ListSteps with include value `error`, then filter the returned items client-side for a non-empty `error` field. Continue with the returned next page token/link if more pages are needed. Only report the actual `error` text returned by the API. Do not invent placeholder text such as `[Error details from step 4005]`. If a returned item has no `error` field or an empty/null value, do not count it as a step with a non-empty error message.
If the user asks for a specific step by step id, prefer GetStep with jobId=all and executionId=all when jobId or executionId are not supplied.
Do not use broad time-window ListSteps searches to answer a specific step error/output request when a step id is available.
Use GetStep when stepId is known.
Use steps to find the detailed unit of work behind a job execution result.
Request
Path Parameters
-
executionId(required): string
Job execution id, or `all` only for endpoints that explicitly support cross-execution lookup. Use `all` when the user asks for steps across all executions and does not specify an execution id. For ListSteps, if the user asks for all steps, steps with errors, or steps across jobs and does not provide an execution id, set this required path parameter to `all`. Use `all` on GetStep when the user supplies a concrete step id but does not supply an execution id. Do not leave the placeholder value `{executionId}` in the URL. If the user asks for a single execution resource, execution targets, or execution parameters, call ListExecutions first to resolve a real execution id.
-
jobDispatcherId(required): string
Job Dispatcher Id
-
jobId(required): string
Job id, or `all` only for endpoints that explicitly support cross-job lookup. Use `all` when the user asks for executions or steps across all jobs and does not specify a job id. For ListSteps, if the user asks for all steps, steps with errors, or steps across executions and does not provide a job id, set this required path parameter to `all`. Use `all` on GetExecution when the user supplies a concrete execution id but does not supply a job id. Use `all` on GetStep when the user supplies a concrete step id but does not supply a job id. Do not leave the placeholder value `{jobId}` in the URL. If the user asks for a single job resource, job targets, or job parameters, call ListJobs first to resolve a real job id.
Query Parameters
-
endTime:
Resource end time matching specific string
-
endTimeGreaterThan:
Resource end time greater than specific string valueMatch All
-
string
Custom date time ranges for startTime and endTime value. Time for the job in the ISO-8601 format, YYYY-MM-DD'T'HH24:Mi:ss[.SSS][Z], where Z stands for Timezone, which is either 'Z' (UTC) or the offset to UTC in format +-hh:mm. If no timezone is specified, the time is assumed in server local time.
-
object type
-
string
-
endTimeLessThan:
Resource end time lower than specific string valueMatch All
-
string
Custom date time ranges for startTime and endTime value. Time for the job in the ISO-8601 format, YYYY-MM-DD'T'HH24:Mi:ss[.SSS][Z], where Z stands for Timezone, which is either 'Z' (UTC) or the offset to UTC in format +-hh:mm. If no timezone is specified, the time is assumed in server local time.
-
object type
-
string
-
id: array[string]
Step id filter for ListSteps. To list multiple specific steps in one request, repeat the query parameter, for example `id=4001&id=4003`. Do not pass comma-separated ids such as `id=4001,4003`. For a single specific step error/output request, prefer GetStep with path parameter stepId and use jobId=all and executionId=all if only stepId is known.
-
include: array[string]
Repeat the include query parameter for each requested value. Valid values are `total`, `error`, and `output`. When calling generated tools, pass `include` as an array of separate values: total, error, output. For multiple values, construct the URL as `include=output&include=error`, not `include=output,error`. If include=total information about total number of returned records will be included in the response. If include=error then the `error` field is added when a step has an error message. The field may be absent or null for steps without an error; clients must filter for non-empty `error` values and must not invent error text. If include=output then the `output` field is added when a step has output. The field may be absent or null for steps without output; clients must not invent output text. For failure analysis of a job, execution, or step, request both output and error and base the explanation on those returned fields.
-
Allowed Values:
[ "total", "error", "output" ]
-
-
jobName: string
Job name
-
jobNameMatches: string
Job name matching SQL-LIKE pattern (use % wildcard), for example %RETRY%
-
jobType: string
jobType can be used in /jobQueues query to filter resulting queues - only queues containing an execution with particular job type name are returned
-
jobTypeMatches: string
jobTypeMatches can be used in /jobQueues query to filter resulting queues - only queues containing an execution with job type name matching the mask are returned. It uses standard SQL LIKE wildcard notation, '%' for zero, one or more characters and '_' for exactly one character.
-
limit: integer
Limit the number of returned items on the page
-
name: string
Resource name matching specific string
-
nameMatches: string
Resource name matching SQL-LIKE pattern (use % wildcard), for example %MG_RETRY%
-
omsName: string
Oms name matching specific string
-
omsNameMatches: string
Oms name matching specific string filter with wildcards
-
page: string
pointer for the next set of records in pagination
-
startTime:
Resource start time matching specific string
-
startTimeGreaterThan:
Resource start time greater than specific string valueMatch All
-
string
Custom date time ranges for startTime and endTime value. Time for the job in the ISO-8601 format, YYYY-MM-DD'T'HH24:Mi:ss[.SSS][Z], where Z stands for Timezone, which is either 'Z' (UTC) or the offset to UTC in format +-hh:mm. If no timezone is specified, the time is assumed in server local time.
-
object type
-
string
-
startTimeLessThan:
Resource start time lower than specific string valueMatch All
-
string
Custom date time ranges for startTime and endTime value. Time for the job in the ISO-8601 format, YYYY-MM-DD'T'HH24:Mi:ss[.SSS][Z], where Z stands for Timezone, which is either 'Z' (UTC) or the offset to UTC in format +-hh:mm. If no timezone is specified, the time is assumed in server local time.
-
object type
-
string
-
status: string
Resource status numeric code supplied as a string query value. Do not use display labels such as `Active`, `Suspended`, `FAILED`, or `COMPLETED` with this filter. Use `statusDisplayName` when the user provides a human-readable status string.
-
statusDisplayName: string
Resource status display name matching a specific string. For jobs, use one of `Active`, `Suspended`, `Stopped`, `Reassigned`, `Expired`, `Delete Pending`. For executions and steps, use one of `SCHEDULED`, `EXECUTING`, `ABORTED`, `FAILED`, `COMPLETED`, `SUSPENDED_USER`, `SUSPENDED_AGENT_DOWN`, `STOPPED`, `SUSPENDED_LOCK`, `SUSPENDED_EVENT`, `SUSPENDED_BLACKOUT`, `STOP_PENDING`, `SUSPEND_PENDING`, `INACTIVE`, `QUEUED`, `FAILURE_RETRIED`, `WAITING`, `SKIPPED`, `DELETE_PENDING`, `REASSIGNED`, `MISSING_CREDS`, `ACTION_REQUIRED`, `RTL_EXCEEDED`, `STOP_PROCESSING`, `NON_STOPPABLE`, `BROKEN_TARGET`, `IGNORED`, `BROKEN_CA`.
-
type: string
Resource type matching specific string value
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
list of all steps for given job execution
Root Schema : StepCollection
Type:
objectA collection of Job executions steps
Show Source
-
items(required): array
items
list of steps
Match All
A collection of Job executions steps
Show Source
-
object
BaseProperties
Abstract collection of summary objects for LIST operations
Nested Schema : items
Type:
arraylist of steps
Show Source
-
Array of:
object StepSummary
An object representing a Job execution step.
Nested Schema : BaseProperties
Type:
objectAbstract collection of summary objects for LIST operations
Show Source
-
count(required): integer
Count of summary objects in this page
-
links(required): object
links
Navigation links for results of collection type
Nested Schema : StepSummary
Type:
objectAn object representing a Job execution step.
Show Source
-
commandType(required): number
Type of the step command type
-
dispatcherId(required): string
Id of dispatcher where job execution step run
-
endTime: string
End time of job execution
-
error: string
Error of job execution step
-
executionId(required): string
Job execution id
-
id(required): number
Id of the job execution step
-
jobId(required): string
Job id
-
jobName(required): string
Job name
-
jobType: string
Job type
-
links(required): object
SelfLink
A link to self
-
name(required): string
Name of the job execution step
-
omsName(required): string
Name of dispatcher where job execution step run
-
output: string
Output of job execution step
-
retryCount: number
Number of retries for this step
-
startTime(required): string
Actual start time of job execution
-
status(required): number
Step status
-
statusDisplayName(required): string
Allowed Values:
[ "SCHEDULED", "EXECUTING", "ABORTED", "FAILED", "COMPLETED", "SUSPENDED_USER", "SUSPENDED_AGENT_DOWN", "STOPPED", "SUSPENDED_LOCK", "SUSPENDED_EVENT", "SUSPENDED_BLACKOUT", "STOP_PENDING", "SUSPEND_PENDING", "INACTIVE", "QUEUED", "FAILURE_RETRIED", "WAITING", "SKIPPED", "DELETE_PENDING", "REASSIGNED", "MISSING_CREDS", "ACTION_REQUIRED", "RTL_EXCEEDED", "STOP_PROCESSING", "NON_STOPPABLE", "BROKEN_TARGET", "IGNORED", "BROKEN_CA" ]Internal display name of job execution step status. Values come from `JobEngineConstants.getStatusName(status)`. -
type(required): number
Type of the job execution step
Nested Schema : SelfLink
Type:
objectA link to self
Show Source
-
self(required): object
Link
A link referencing to another api
Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Nested Schema : links
Type:
objectNavigation links for results of collection type
Show Source
-
next: object
Link
A link referencing to another api
-
previous: object
Link
A link referencing to another api
-
self(required): object
Link
A link referencing to another api
400 Response
Bad Request
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
401 Response
Unauthorized
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
500 Response
Internal Server Error
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
503 Response
Service Unavailable
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported