List Work Requests
GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}&sortOrder=ASC&sortBy=timeAccepted&limit=10
Lists the work requests in a compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment in which to list resources. | |
resourceIdentifier | string | The OCID of the resource. | |
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. If no value is specified timeAccepted is default. | |
page | string | The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. | |
limit | number | The maximum number of items to return. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
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"}]}