List executions
get
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/jobs/{jobId}/executions
Get a list of executions. Use path parameter jobId=all to list executions across all jobs when a specific job ID is not supplied.
Use this endpoint when the user asks for job results, run results, success/failure, or runtime status.
When the user asks for scheduled jobs or executions in a time window, treat it as an execution query. This includes windows such as next minute, next hour, today, tomorrow, next day, next week, next month, or explicit start/end timestamps. Call ListExecutions with jobId=all when no specific job id is supplied, statusDisplayName=SCHEDULED, and the appropriate startTimeGreaterThan/startTimeLessThan bounds. `jobId` is a path parameter, not a query parameter: generate `/jobs/all/executions?...`, never `/jobs/executions?jobId=all...`. Never call this endpoint with a literal `{jobId}` placeholder.
When presenting scheduled execution results, render the actual `items[]` returned by the response. Include `executionId`, `jobId`, `jobName`, `jobType`, and `scheduledTime` so recurring executions and repeated job definitions 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.
When the user asks why a job or execution failed, use this endpoint to identify the relevant execution, then retrieve steps and call GetStep with both include=output and include=error for the relevant steps. Base the failure analysis on returned step output and error text, not on execution status alone.
When the user asks for parameters of multiple executions, such as parameters of the last 10 executions,
call this endpoint once with expand=parameters and limit set to the requested number. Do not call
ListExecutionParameters once per execution unless expanded parameters are missing or the user asks for
a specific execution only.
Request
Path Parameters
-
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.
-
parameterName(required): string
Job configuration parameter name
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
-
expand: array[string]
Repeat the expand query parameter for each requested collection. Valid values are `steps`, `targets`, and `parameters`. When calling generated tools, pass `expand` as an array of separate values: parameters, targets, steps. Do not pass a URL query fragment such as `parameters&expand=targets` as the `expand` argument value. For multiple values, construct the URL as `expand=steps&expand=parameters&expand=targets`, not `expand=steps,parameters,targets`. When the user asks for parameters of multiple executions, such as the last 10 executions, call ListExecutions once with expand=parameters and an appropriate limit. Do not issue one ListExecutionParameters call per execution unless the expanded response is insufficient or the user asks for a specific execution only. When the user asks for all expanded additional details for a given execution, call GetExecution once with expand values `steps`, `parameters`, and `targets`; do not issue three separate child collection requests unless the expanded response is insufficient or the user asks separately. If expand=steps then step collection will be added to the response. If expand=targets then target collection will be added to the response. If expand=parameters then parameter collection will be added to the response.
-
Allowed Values:
[ "steps", "targets", "parameters" ]
-
-
id: array[string]
Resource id filter for collection endpoints. To filter by multiple resource ids in one request, repeat the query parameter, for example `id=
&id= `. Do not pass comma-separated ids such as `id= , `. For ListJobs this filters job ids. For ListExecutions this filters execution ids. -
include: string
If include=total information about total number of returned records will be included in the response
-
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
-
page: string
pointer for the next set of records in pagination
-
parameterNameMatches: string
Parameter matching specific string filter value with wildcards. If this parameter is used with get jobs or with get executions it will automatically set expand=parameters.
-
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.
-
statusBucket: string
Resource status bucket matching specific string
-
statusBucketDisplayName: string
Resource status bucket display name matching a specific string.Allowed Values:
[ "BUCKET_SCHEDULED", "BUCKET_RUNNING", "BUCKET_ACTION_REQUIRED", "BUCKET_SUSPENDED", "BUCKET_OK", "BUCKET_PROBLEM", "BUCKET_RTL_EXCEEDED", "BUCKET_SKIPPED" ] -
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`.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
list of all job executions
Root Schema : ExecutionCollection
Type:
objectThis is the representation of list of Executions.
Show Source
-
items(required): array
items
The list of executions
Match All
This is the representation of list of Executions.
Show Source
-
object
CountLinks
This represents pagination properties like count and links.
Nested Schema : items
Type:
arrayThe list of executions
Show Source
-
Array of:
object ExecutionSummary
This is the representation of an Execution.
Nested Schema : CountLinks
Type:
objectThis represents pagination properties like count and links.
Show Source
-
count: integer
This represents total number of elements in a page.Example:
20 -
links: object
links
Read Only:
trueThe result set navigation links
Nested Schema : ExecutionSummary
Type:
objectThis is the representation of an Execution.
Match All
This is the representation of an Execution.
Show Source
-
object
ExecutionDetails
It represents an execution.
Nested Schema : ExecutionDetails
Type:
objectIt represents an execution.
Show Source
-
id: string
Unique identifier for an executionExample:
CDAAE80FDD3D7987E053E00F4B64DEBB -
links: object
links
the Execution related links
-
name: string
Name of of an instanceExample:
hostcmd-executiontest -
runtimeData: object
runtimeData
Execution run time data
-
status: string
Represents status of an executionExample:
COMPLETED
Nested Schema : links
Type:
objectthe Execution related links
Show Source
-
self: object
Link
A link referencing to another api
Nested Schema : runtimeData
Type:
objectExecution run time data
Match All
Execution run time data
Show Source
-
object
allOf
InstanceData
This is the representation of instance submission data.
Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Nested Schema : InstanceData
Type:
objectThis is the representation of instance submission data.
Match All
This is the representation of instance submission data.
This is the representation of instance submission data.
Show Source
-
array
DeploymentProcedureTargetList
Defining list of procedure targets
-
object
DeploymentProcedureVariableCollection
Collections of Procedure Variable
Nested Schema : DeploymentProcedureTargetList
Type:
arrayDefining list of procedure targets
Show Source
Nested Schema : DeploymentProcedureVariableCollection
Type:
objectCollections of Procedure Variable
Show Source
-
items: array
items
The list of procedure variables
Nested Schema : items
Type:
Show Source
object-
name: string
name of target typeExample:
host -
targets: object
DeploymentProcedureTargetCollection
Collections of Procedure Target
Nested Schema : DeploymentProcedureTargetCollection
Type:
objectCollections of Procedure Target
Show Source
-
items: array
items
The list of targets
Nested Schema : items
Type:
arrayThe list of targets
Show Source
-
Array of:
object DeploymentProcedureTargetSummary
This is the representation of Procedure Target
Nested Schema : DeploymentProcedureTargetSummary
Type:
objectThis is the representation of Procedure Target
Match All
This is the representation of Procedure Target
Show Source
-
object
DeploymentProcedureTargetDetails
Defining Target for Deployment Procedure
Nested Schema : DeploymentProcedureTargetDetails
Type:
objectDefining Target for Deployment Procedure
Show Source
-
credentialReferences: array
CredentialReference
This is the representation of credential references.
-
targetName: string
Target NameExample:
host1.oracle.com -
targetType: string
Target TypeExample:
host
Nested Schema : CredentialReference
Type:
arrayThis is the representation of credential references.
Show Source
Nested Schema : items
Type:
Show Source
object-
credentialName: string
Represents credential nameExample:
EMGA -
credentialType: string
Represents type of the credentialExample:
NAMED -
owner: string
Represents owner of the credentialExample:
SYSMAN -
usage: string
Represents credential usageExample:
defaultHostCred
Nested Schema : items
Type:
arrayThe list of procedure variables
Show Source
-
Array of:
object DeploymentProcedureVariableSummary
This is the representation of Procedure Variable
Nested Schema : DeploymentProcedureVariableSummary
Type:
objectThis is the representation of Procedure Variable
Match All
This is the representation of Procedure Variable
Show Source
-
object
DeploymentProcedureVariableDetails
Defining Variable for Deployment Procedure
Nested Schema : DeploymentProcedureVariableDetails
Type:
objectDefining Variable for Deployment Procedure
Show Source
-
variableName: string
Displays Deployment Procedure varibale nameExample:
userId -
variableValue: string
Displays Deployment Procedure varibale valueExample:
10001
Nested Schema : links
Type:
objectRead Only:
trueThe result set navigation links
Show Source
-
next: object
Link
A link referencing to another api
-
previous: object
Link
A link referencing to another api
-
self: 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