List Work Requests

GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}&sortOrder=ASC&sortBy=timeAccepted&limit=10

Lists the work requests in a compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment in which to list resources.
resourceIdentifierstringThe OCID of the resource.
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. If no value is specified timeAccepted is default.
pagestringThe page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
limitnumberThe maximum number of items to return.

HEADERS

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

RESPONSES

status: OK

{"items":[{"operationType":"UPDATE_DATABASE_TOOLS_PRIVATE_ENDPOINT","status":"WAITING","id":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","percentComplete":"\u003cfloat\u003e","timeAccepted":"\u003cdateTime\u003e","resources":[{"actionType":"UPDATED","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"},{"actionType":"DELETED","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"}],"timeFinished":"\u003cdateTime\u003e","timeStarted":"\u003cdateTime\u003e"},{"operationType":"CREATE_DATABASE_TOOLS_CONNECTION","status":"IN_PROGRESS","id":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","percentComplete":"\u003cfloat\u003e","timeAccepted":"\u003cdateTime\u003e","resources":[{"actionType":"CREATED","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"},{"actionType":"DELETED","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"}],"timeFinished":"\u003cdateTime\u003e","timeStarted":"\u003cdateTime\u003e"}]}