Lists job runs.

GET {{baseUrl}}/jobRuns?compartmentId=<string>&id=<string>&jobId=<string>&managedDatabaseId=<string>&managedDatabaseGroupId=<string>&runStatus=<string>&name=<string>&limit=10&page=<string>&sortBy=TIMECREATED&sortOrder=ASC

Gets the job run for a specific ID or the list of job runs for a job, Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId, or managedDatabaseGroupId should be provided. If none of these parameters is provided, all the job runs in the compartment are listed. Job runs can also be filtered based on name and runStatus parameters.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment.
idstringThe identifier of the resource.
jobIdstringThe identifier of the job.
managedDatabaseIdstringThe OCID of the Managed Database.
managedDatabaseGroupIdstringThe OCID of the Managed Database Group.
runStatusstringThe status of the job run.
namestringA filter to return only resources that match the entire name.
limitnumberThe maximum number of records returned in the paginated response.
pagestringThe page token representing the page from where the next set of paginated results
are retrieved. This is usually retrieved from a previous list call.
sortBystringThe field to sort information by. Only one sortOrder can be used. The default sort order
for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending.
The ‘NAME’ sort order is case-sensitive.
sortOrderstringThe option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;compartmentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;jobId&quot;:&quot;\u003cstring\u003e&quot;,&quot;jobName&quot;:&quot;\u003cstring\u003e&quot;,&quot;runStatus&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeSubmitted&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeUpdated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;managedDatabaseGroupId&quot;:&quot;\u003cstring\u003e&quot;,&quot;managedDatabaseId&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;compartmentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;jobId&quot;:&quot;\u003cstring\u003e&quot;,&quot;jobName&quot;:&quot;\u003cstring\u003e&quot;,&quot;runStatus&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeSubmitted&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeUpdated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;managedDatabaseGroupId&quot;:&quot;\u003cstring\u003e&quot;,&quot;managedDatabaseId&quot;:&quot;\u003cstring\u003e&quot;}]}