ListWorkRequests
GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}&id=cillum consectetur labore dolor&operationType=MODEL_DEPLOYMENT_DELETE&status=IN_PROGRESS&limit=10&sortOrder=ASC&sortBy=timeAccepted
Lists work requests in the specified compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) <b>Filter</b> results by the OCID of the compartment. | |
id | string | <b>Filter</b> results by OCID. Must be an OCID of the correct type for the resource type. | |
operationType | string | <b>Filter</b> results by the type of the operation associated with the work request. | |
status | string | <b>Filter</b> results by work request status. | |
limit | number | For list pagination. The maximum number of results per page, | |
or items to return in a paginated "List" call. | |||
1 is the minimum, 1000 is the maximum. | |||
See List Pagination. |
Example: 500
|
| page
| string | | For list pagination. The value of the opc-next-page
response
header from the previous "List" call.
See List Pagination.
|
| sortOrder
| string | | Specifies sort order to use, either ASC
(ascending) or DESC
(descending).
|
| sortBy
| string | | Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, the results are shown in descending order. All other fields default to ascending order.
|
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. | |
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
[{"operationType":"NOTEBOOK_SESSION_CREATE","status":"SUCCEEDED","id":"ocid1.datascienceworkrequest.oc1.iad.aaaaaaaaabbbbbbbbbbbbcccccccccdddddddddeeeeeeeffffffgggggggg","compartmentId":"ocid1.compartment.oc1..aaaaaaaaabbbbbbbbbbbbcccccccccdddddddddeeeeeeeffffffgggggggg","percentComplete":100,"resources":[{"actionType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"actionType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"timeAccepted":"1959-07-28T00:27:27.672Z","timeFinished":"2001-02-09T04:48:32.414Z","timeStarted":"1960-04-18T19:10:35.355Z"},{"operationType":"NOTEBOOK_SESSION_CREATE","status":"SUCCEEDED","id":"ocid1.datascienceworkrequest.oc1.iad.aaaaaaaaabbbbbbbbbbbbcccccccccdddddddddeeeeeeeffffffgggggggg","compartmentId":"ocid1.compartment.oc1..aaaaaaaaabbbbbbbbbbbbcccccccccdddddddddeeeeeeeffffffgggggggg","percentComplete":100,"resources":[{"actionType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"actionType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entityUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"timeAccepted":"1961-07-10T04:27:39.598Z","timeFinished":"2002-11-26T09:50:10.548Z","timeStarted":"1957-11-25T21:32:56.071Z"}]