Lists job executions.
GET {{baseUrl}}/jobExecutions?compartmentId=<string>&id=<string>&jobId=<string>&managedDatabaseId=<string>&managedDatabaseGroupId=<string>&status=<string>&name=<string>&limit=10&page=<string>&sortBy=TIMECREATED&sortOrder=ASC&jobRunId=<string>
Gets the job execution for a specific ID or the list of job executions for a job, job run, Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, jobId, jobRunId, managedDatabaseId or managedDatabaseGroupId should be provided. If none of these parameters is provided, all the job executions in the compartment are listed. Job executions can also be filtered based on the name and status parameters.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment. | |
id | string | The identifier of the resource. | |
jobId | string | The identifier of the job. | |
managedDatabaseId | string | The OCID of the Managed Database. | |
managedDatabaseGroupId | string | The OCID of the Managed Database Group. | |
status | string | The status of the job execution. | |
name | string | A filter to return only resources that match the entire name. | |
limit | number | The maximum number of records returned in the paginated response. | |
page | string | The page token representing the page from where the next set of paginated results | |
are retrieved. This is usually retrieved from a previous list call. | |||
sortBy | string | The 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. | |||
sortOrder | string | The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order. | |
jobRunId | string | The identifier of the job run. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
RESPONSES
status: OK
{"items":[{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","managedDatabaseId":"\u003cstring\u003e","managedDatabaseName":"\u003cstring\u003e","jobId":"\u003cstring\u003e","jobName":"\u003cstring\u003e","status":"\u003cstring\u003e","timeCreated":"\u003cdateTime\u003e","databaseSubType":"NON_CDB","databaseType":"SHARED","deploymentType":"BM","isCluster":"\u003cboolean\u003e","managedDatabaseGroupId":"\u003cstring\u003e","timeCompleted":"\u003cdateTime\u003e","workloadType":"AJD"},{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","managedDatabaseId":"\u003cstring\u003e","managedDatabaseName":"\u003cstring\u003e","jobId":"\u003cstring\u003e","jobName":"\u003cstring\u003e","status":"\u003cstring\u003e","timeCreated":"\u003cdateTime\u003e","databaseSubType":"PDB","databaseType":"SHARED","deploymentType":"VM","isCluster":"\u003cboolean\u003e","managedDatabaseGroupId":"\u003cstring\u003e","timeCompleted":"\u003cdateTime\u003e","workloadType":"OLTP"}]}