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
| Key | Datatype | Required | Description |
|---|---|---|---|
compartmentId | string | A filter to return only resources that exist in the compartment, identified by OCID. | |
stackId | string | The stack OCID on which to filter. | |
id | string | The OCID on which to query for jobs. | |
lifecycleState | string | A 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. RequiressortByset toDISPLAYNAME. Alternatively, when you know the resource OCID, use the related Get operation. | |sortBy| string | | The field to use when sorting returned resources. By default,TIMECREATEDis ordered descending. By default,DISPLAYNAMEis 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 paginatedListcall. For information about pagination, see List Pagination. | |page| number | | The value of theopc-next-pageresponse header from the precedingListcall. For information about pagination, see List Pagination. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a | |
| particular request, please provide the request ID. | |||
Date | string | (Required) Current Date | |
Authorization | string | (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"}]