List Work Requests
GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}
Lists the work requests in a compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | The ID of the compartment in which to list resources. | |
workRequestId | string | The ID of the asynchronous work request. | |
status | string | A filter to return only resources their lifecycleState matches the given OperationStatus. | |
resourceId | string | The ID of the resource affected by the work request. | |
page | string | The position at which to start retrieving results. This must come from the opc-next-page header field of a previous response. | |
limit | number | The maximum number of items to return. | |
sortOrder | string | The sort order to use, either 'ASC' or 'DESC'. | |
sortBy | string | The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. | |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
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"}]}