List all jobs related to a stack or compartment. By default, the list is ordered by time created.

You can alter the ordering by using SortByQueryParam and SortOrderQueryParam.

GET {{baseUrl}}/jobs?compartmentId={{compartment_ocid}}&stackId=ut consectetur&id=ut consectetur&lifecycleState=incididunt cillum non&displayName=nostrud aliqua&sortBy=TIMECREATED&sortOrder=DESC&limit=328&page=10

Returns a list of jobs in a stack or compartment, ordered by time created.

  • To list all jobs in a stack, provide the stack OCID.
  • To list all jobs in a compartment, provide the compartment OCID.
  • To return a specific job, provide the job OCID.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstringA filter to return only resources that exist in the compartment, identified by OCID.
stackIdstringThe stack OCID on which to filter.
idstringThe OCID on which to query for jobs.
lifecycleStatestringA filter that returns all resources that match the specified lifecycle state.
The state value is case-insensitive.

Allowable values:

  • ACCEPTED
  • IN_PROGRESS
  • FAILED
  • SUCCEEDED
  • CANCELING
  • CANCELED | | displayName | string | | A filter to return only resources that match the given display name exactly. Use this filter to list a resource by name. Requires sortBy set to DISPLAYNAME. Alternatively, when you know the resource OCID, use the related Get operation. | | sortBy | string | | The field to use when sorting returned resources. By default, TIMECREATED is ordered descending. By default, DISPLAYNAME is ordered ascending. Note that you can sort only on one field. | | sortOrder | string | | The sort order to use when sorting returned resources. Ascending (ASC) or descending (DESC). | | limit | number | | The number of items returned in a paginated List call. For information about pagination, see List Pagination. | | page | number | | The value of the opc-next-page response header from the preceding List call. For information about pagination, see List Pagination. |

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header

RESPONSES

status: OK

[{"applyJobPlanResolution":{"isAutoApproved":true,"isUseLatestJobId":true,"planJobId":"in sed ad nulla"},"compartmentId":"","definedTags":{},"displayName":"irure dolore fugiat","freeformTags":{},"id":"quis Ut fugia","jobOperationDetails":{"operation":"aliquip consequat do culpa ipsum"},"lifecycleState":"sint in minim esse","operation":"aliqua adipisicing ex aute","resolvedPlanJobId":"dolor","stackId":"est consequat ullamco aute","timeCreated":"2009-06-30T21:27:05.895Z","timeFinished":"1973-05-19T01:39:01.895Z"},{"applyJobPlanResolution":{"isAutoApproved":true,"isUseLatestJobId":true,"planJobId":"laborum"},"compartmentId":"mollit et","definedTags":{},"displayName":"culpa cillum sit reprehenderit","freeformTags":{},"id":"sit minim in do","jobOperationDetails":{"operation":"proident laborum"},"lifecycleState":"ullamco aute proident qui","operation":"anim sint ullamco non dolor","resolvedPlanJobId":"deserunt ullamco in cupidatat","stackId":"est quis","timeCreated":"2001-11-06T00:13:36.857Z","timeFinished":"1947-09-06T08:15:07.749Z"}]