GET
/
api
/
svc
/
v1
/
jobs
/
{jobId}
/
runs
curl --request GET \
  --url https://{controlPlaneURL}/api/svc/v1/jobs/{jobId}/runs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "name": "<string>",
      "applicationName": "<string>",
      "deploymentVersion": "<string>",
      "createdAt": 123,
      "endTime": 123,
      "duration": 123,
      "command": "<string>",
      "totalRetries": 123,
      "error": "<string>",
      "status": "CREATED",
      "triggeredBy": "<string>",
      "triggeredBySubject": {
        "subjectId": "<string>",
        "subjectType": "user",
        "subjectSlug": "<string>",
        "subjectDisplayName": "<string>"
      },
      "exitCode": 123
    }
  ],
  "pagination": {
    "total": 100,
    "offset": 0,
    "limit": 10
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

jobId
string
required

Job id of the application

Query Parameters

limit
integer
default:100

Number of items per page

Required range: 1 <= x <= 1000
Example:

10

offset
integer
default:0

Number of items to skip

Required range: x >= 0
Example:

0

searchPrefix
string

Prefix used to search for job runs by name or identifier

sortBy
enum<string>

Attribute to sort by

Available options:
startTime,
duration,
deploymentVersion,
triggeredBy,
status
order
enum<string>

Sorting order

Available options:
asc,
desc
triggeredBy
string[]

Array of subject slugs

status
enum<string>[]

Status of the job run

Available options:
CREATED,
SCHEDULED,
RUNNING,
FINISHED,
FAILED,
TERMINATION_REQUESTED,
TERMINATING,
TERMINATED,
UNKNOWN

Response

200
application/json
Returns all runs of a Job sorted by creation date in "data" key and total count in "totalCount" key
data
object[]
required

JobRun History

pagination
object
required

Pagination Information