List work requests
GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}&resourceId=&page=&limit=100&sortOrder=ASC&sortBy=timeCreated
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. | |
resourceId | null | Filter work requests by the resource ocid. | |
page | null | 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. | |
sortOrder | string | The sort order to use, either 'asc' or 'desc'. The default order depends on the sortBy value. | |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder ). | |
Default order for timeCreated is descending. Default order for | |||
displayName is ascending. The displayName sort order is case | |||
sensitive. | |||
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | null | The client request id for tracing. | |
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
{"items":[{"operationType":"non Excepteur","percentComplete":-59426603.94240296,"status":"dolore do consequat laboris qui","timeAccepted":"1941-09-17T10:48:51.325Z","timeFinished":"1967-11-01T17:43:28.601Z","timeStarted":"1997-04-01T16:35:41.859Z"},{"operationType":"in eiusmod","percentComplete":84923494.22076303,"status":"esse consequat fugiat","timeAccepted":"1959-10-05T22:46:18.811Z","timeFinished":"1968-11-04T22:19:54.814Z","timeStarted":"1997-09-11T20:59:56.834Z"}]}