List Work Requests

GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}

Lists the work requests in a compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstringThe ID of the compartment in which to list resources.
workRequestIdstringThe ID of the asynchronous work request.
statusstringA filter to return only resources their lifecycleState matches the given OperationStatus.
resourceIdstringThe ID of the resource affected by the work request.
pagestringThe position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
limitnumberThe maximum number of items to return.
sortOrderstringThe sort order to use, either 'ASC' or 'DESC'.
sortBystringThe field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.

HEADERS

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

RESPONSES

status: OK

{"items":[{"compartmentId":"aliquip dolore sed","id":"laboris dolore","operationType":"CREATE_MODEL","percentComplete":-71397608.76749781,"resources":[{"actionType":"IN_PROGRESS","entityType":"quis id","identifier":"laborum labore","entityUri":"deserunt adipisicing"},{"actionType":"RELATED","entityType":"sint velit","identifier":"veniam mollit n","entityUri":"ea dolore"}],"status":"CANCELING","timeAccepted":"2001-09-25T01:50:53.556Z","timeFinished":"2011-02-13T00:17:32.304Z","timeStarted":"2021-03-08T02:51:18.483Z"},{"compartmentId":"dolor sunt enim reprehenderit","id":"nisi consectetur et","operationType":"MOVE_PROJECT","percentComplete":85495502.21664202,"resources":[{"actionType":"FAILED","entityType":"pariatur","identifier":"est eu nostrud velit","entityUri":"Excepteur elit"},{"actionType":"FAILED","entityType":"Excepteur esse ut","identifier":"nulla aliqua","entityUri":"nulla Lorem"}],"status":"CANCELING","timeAccepted":"1946-04-23T05:15:11.144Z","timeFinished":"2019-06-09T16:58:51.113Z","timeStarted":"1973-05-09T08:07:39.587Z"}]}