List Work Requests
GET {{baseUrl}}/workRequests?compartmentId=<string>&resourceId=<string>&workRequestId=<string>&status=IN_PROGRESS&sortOrder=ASC&sortBy=timeAccepted&page=<string>&limit=10
The list of work requests in a specific compartment was retrieved successfully.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment. | |
resourceId | string | The OCID of the resource affected by the work request. | |
workRequestId | string | The OCID of the asynchronous work request. | |
status | string | A filter that returns the resources whose status matches the given WorkRequestStatus. | |
sortOrder | string | The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order. | |
sortBy | string | The field to sort by. Only one sort order may be provided and the default order for timeAccepted is descending. | |
page | string | The page token representing the page from where the next set of paginated results | |
are retrieved. This is usually retrieved from a previous list call. | |||
limit | number | The maximum number of records returned in the paginated response. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
RESPONSES
status: OK
{"items":[{"operationType":"UPDATE_DB_SYSTEM","status":"CANCELING","id":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","percentComplete":"\u003cfloat\u003e","timeAccepted":"\u003cdateTime\u003e","resources":[{"actionType":"IN_PROGRESS","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityDependencies":[{"actionType":"IN_PROGRESS","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"},{"actionType":"CREATED","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"}],"entityName":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"},{"actionType":"DISABLED","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityDependencies":[{"actionType":"DELETED","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"},{"actionType":"DELETED","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"}],"entityName":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"}],"timeFinished":"\u003cdateTime\u003e","timeStarted":"\u003cdateTime\u003e"},{"operationType":"DELETE_DB_SYSTEM","status":"CANCELING","id":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","percentComplete":"\u003cfloat\u003e","timeAccepted":"\u003cdateTime\u003e","resources":[{"actionType":"RELATED","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityDependencies":[{"actionType":"FAILED","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"},{"actionType":"ENABLED","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"}],"entityName":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"},{"actionType":"IN_PROGRESS","entityType":"\u003cstring\u003e","identifier":"\u003cstring\u003e","entityDependencies":[{"actionType":"UPDATED","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"},{"actionType":"IN_PROGRESS","entityType":"\u003cstring\u003e","entityName":"\u003cstring\u003e","description":"\u003cstring\u003e","entityUri":"\u003cstring\u003e","identifier":"\u003cstring\u003e"}],"entityName":"\u003cstring\u003e","entityUri":"\u003cstring\u003e"}],"timeFinished":"\u003cdateTime\u003e","timeStarted":"\u003cdateTime\u003e"}]}