List work requests

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

Pre-General Availability: 2023-09-18 |Important| |- |The following legal notice applies to Oracle pre-GA (Beta) releases. For copyright and other applicable notices, see Oracle Legal Notices.

Pre-General Availability Draft Documentation Notice
This documentation is in pre-General Availability status and is intended for demonstration and preliminary use only. It may not be specific to the hardware on which you are using the software. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to this documentation and will not be responsible for any loss, costs, or damages incurred due to the use of this documentation. This documentation is not a commitment by Oracle to deliver any material, code, functionality or services. This documentation, and Oracle Pre-GA programs and services are subject to change at any time without notice and, accordingly, should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality for Oracle’s Pre-GA programs and services remains at the sole discretion of Oracle. All release dates or other predictions of future events are subject to change. The future availability of any future Oracle program or service should not be relied on in entering into any license or service agreement with Oracle.

ListWorkRequests

Lists the work requests in a compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment in which to list resources.
workRequestIdstringThe OCID of the asynchronous work request.
statusstringA filter to return only the resources that match the given lifecycle state.
resourceIdstringThe OCID of the resource affected by the work request.
pagestringFor list pagination. The value of the opc-next-page response header from the previous
"List" call. For important details about how pagination works, see
List Pagination.
limitnumberFor list pagination. The maximum number of results per page, or items to return in a
paginated "List" call. For important details about how pagination works, see
List Pagination.
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.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact
Oracle about a particular request, please provide the request ID.
The only valid characters for request IDs are letters, numbers,
underscore, and dash.
Acceptstring

RESPONSES

status: OK

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