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
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment in which to list resources. | |
workRequestId | string | The OCID of the asynchronous work request. | |
status | string | A filter to return only the resources that match the given lifecycle state. | |
resourceId | string | The OCID of the resource affected by the work request. | |
page | string | For 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. | |||
limit | number | For 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. | |||
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. | |
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, please provide the request ID. | |||
The only valid characters for request IDs are letters, numbers, | |||
underscore, and dash. | |||
Accept | string |
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"}]}