List Work Requests

GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}&limit=10

Lists the work requests in a compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstringThe OCID of the compartment in which to list resources.
workRequestIdstringThe ID of the asynchronous work request.
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see List Pagination.
limitnumberFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, 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.
Acceptstring

RESPONSES

status: OK

{"items":[{"operationType":"UPDATE_QUEUE","status":"CANCELED","id":"Lorem quis do","compartmentId":"dolor Excepteur laboris elit a","resources":[{"actionType":"DELETED","entityType":"ex ipsum","identifier":"ea in Duis id mollit","entityUri":"amet eiusmod eu dolor aliquip"},{"actionType":"RELATED","entityType":"ut consectetur amet","identifier":"ea adipisicing do eiusmod","entityUri":"laborum id Ut laboris"}],"percentComplete":-54660876.605554566,"timeAccepted":"1961-10-12T08:28:07.182Z","timeFinished":"1964-05-12T21:46:12.928Z","timeStarted":"1998-01-29T01:23:55.213Z"},{"operationType":"MOVE_QUEUE","status":"FAILED","id":"cillum ullamco in exercitation","compartmentId":"dolore est","resources":[{"actionType":"IN_PROGRESS","entityType":"eiusmod","identifier":"ea","entityUri":"cupidatat proident"},{"actionType":"RELATED","entityType":"o","identifier":"nulla aliquip est occaecat","entityUri":"in nostrud"}],"percentComplete":-33945044.440113924,"timeAccepted":"1956-12-18T17:13:00.775Z","timeFinished":"1985-06-08T00:56:10.366Z","timeStarted":"2009-01-29T13:27:53.983Z"}]}