List job definitions

get

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/jobs

Returns job definitions (one row per job) from the Jobs repository model. This endpoint is for job metadata, ownership, configuration, and job-level state. It does not return per-execution runtime state unless `expand=executions` is requested. Important: - `status` is a numeric status code supplied as a string query value (for example `0`, `1`, `2`). Do not pass display labels such as `Active` or `Suspended` to `status`; use `statusDisplayName` for those string literals. - `statusDisplayName` here represents the job definition state (for example Active, Suspended, Stopped), not the latest execution result. - When the user asks for job results, job run result, output, success, failure, or runtime state (for example Succeeded/Failed/Running), use `/jobs/{jobId}/executions` and step details instead of answering from the job definition alone. - When the user asks why a job, execution, or step failed, retrieve the relevant steps and call GetStep with both include=output and include=error. Base the analysis on the returned step `output` and `error` fields, not on status fields alone. - `nameMatches` and other `*Matches` query filters use SQL-LIKE style patterns. Use `%` wildcards (for example `%MG_RETRY%`).

Request

Path Parameters
Query Parameters
  • Repeat the expand query parameter for each requested collection. Valid values are `executions`, `targets`, and `parameters`. When calling generated tools, pass `expand` as an array of separate values: parameters, targets, executions. 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=parameters&expand=targets`, not `expand=parameters,targets`. If expand=executions then execution 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: [ "executions", "targets", "parameters" ]
  • 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.
  • If include=total information about total number of returned records will be included in the response
  • true - Filter only CA jobs. false - filter only non-CA jobs. Return both if not set.
  • true - Filter only library jobs. false - filter only non-library jobs. Return both if not set.
  • Limit the number of returned items on the page
  • Resource name matching specific string
  • Resource name matching SQL-LIKE pattern (use % wildcard), for example %MG_RETRY%
  • Resource owner matching specific string
  • Resource owner matching specific string filter with wildcards
  • pointer for the next set of records in pagination
  • 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.
  • 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.
  • 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`.
  • Filter only specific System job type. 0 = User visible job(not system job) 1 = One time system job 2 = Retry system job 3 = System job associated with a http session
  • Resource type matching specific string value

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Return a list of job definitions and their job-level status
Body ()
Root Schema : JobCollection
Type: object
A collection of Jobs
Show Source
Match All
A collection of Jobs
Show Source
Nested Schema : items
Type: array
list of jobs
Show Source
Nested Schema : BaseProperties
Type: object
Abstract collection of summary objects for LIST operations
Show Source
Nested Schema : JobSummary
Type: object
An object representing a job definition. This is not an execution record.
Show Source
Nested Schema : executions
Type: array
Execution collection for this job when `expand=executions` is set. Use this collection (or `/jobs/{jobId}/executions`) for runtime/run-result statuses.
Show Source
Nested Schema : parameters
Type: array
show parameters collection used by this job when expand=parameters is set. Includes runtime properties when configured.
Show Source
Nested Schema : targets
Type: array
show targets collection used by this job when expand=targets is set
Show Source
Nested Schema : ExecutionSummary
Type: object
This is the representation of an Execution.
Match All
This is the representation of an Execution.
Show Source
Nested Schema : ExecutionDetails
Type: object
It represents an execution.
Show Source
Nested Schema : runtimeData
Type: object
Execution run time data
Match All
Execution run time data
Show Source
Nested Schema : InstanceData
Type: object
This 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
Nested Schema : DeploymentProcedureTargetList
Type: array
Defining list of procedure targets
Show Source
Nested Schema : DeploymentProcedureVariableCollection
Type: object
Collections of Procedure Variable
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : DeploymentProcedureTargetCollection
Type: object
Collections of Procedure Target
Show Source
Nested Schema : items
Type: array
The list of targets
Show Source
Nested Schema : DeploymentProcedureTargetSummary
Type: object
This is the representation of Procedure Target
Match All
This is the representation of Procedure Target
Show Source
Nested Schema : DeploymentProcedureTargetDetails
Type: object
Defining Target for Deployment Procedure
Show Source
Nested Schema : CredentialReference
Type: array
This is the representation of credential references.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: array
The list of procedure variables
Show Source
Nested Schema : DeploymentProcedureVariableSummary
Type: object
This is the representation of Procedure Variable
Match All
This is the representation of Procedure Variable
Show Source
Nested Schema : DeploymentProcedureVariableDetails
Type: object
Defining Variable for Deployment Procedure
Show Source
Nested Schema : ParameterSummary
Type: object
Job parameter summary returned by LIST operation. Maps directly to Parameter object.
Match All
Job parameter summary returned by LIST operation. Maps directly to Parameter object.
Job parameter summary returned by LIST operation. Maps directly to Parameter object.
Show Source
  • Parameter
    Job configuration parameter, identified by context name / parameter name. Contains a single value. In case the value is not defined on given context, the value is populated from metadata (default value) or from the GLOBAL context. Alternatively, user can ask to see values from all related contexts.
  • ParameterSummary-allOf[1]
Nested Schema : Parameter
Type: object
Job configuration parameter, identified by context name / parameter name. Contains a single value. In case the value is not defined on given context, the value is populated from metadata (default value) or from the GLOBAL context. Alternatively, user can ask to see values from all related contexts.
Show Source
Nested Schema : ParameterSummary-allOf[1]
Type: object
Nested Schema : contextValues
Type: object
Additional Properties Allowed
Show Source
Parameter values from all related contexts / metadata
Nested Schema : value
Parameter value
Match One Schema
Show Source
Nested Schema : TargetSummary
Type: object
Summary information about a target.
Show Source

400 Response

Bad Request
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported
Back to Top