Pre-General Availability: 2022-08-18. 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.

List Work Requests

get

/20211130/workRequests

Lists the work requests in a compartment.

Request

Query Parameters
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment.
  • Minimum Value: 1
    Maximum Value: 1000
    The maximum number of items to return.
    Default Value: 100
  • Minimum Length: 1
    The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
  • The ID of the resource affected by the work request.
  • The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
    Default Value: timeCreated
    Allowed Values: [ "timeCreated", "displayName" ]
  • The sort order to use, either 'asc' or 'desc'.
    Default Value: ASC
    Allowed Values: [ "ASC", "DESC" ]
  • The ID of the asynchronous work request.
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

The list is being retrieved.
Headers
  • For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : WorkRequestSummaryCollection
Type: object
Results of a workRequest search. Contains both WorkRequest items and other information, such as metadata.
Show Source
Nested Schema : items
Type: array
List of workRequestSummary objects.
Show Source
Nested Schema : WorkRequestSummary
Type: object
A summary of the status of a work request.
Show Source
  • The ocid of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used
  • The id of the work request.
  • Allowed Values: [ "CREATE_PROJECT", "UPDATE_PROJECT", "DELETE_PROJECT", "MOVE_PROJECT", "CREATE_TABLE", "UPDATE_TABLE", "DELETE_TABLE" ]
    Type of the work request
  • Percentage of the request completed.
  • resources
    The resources affected by this work request.
  • Allowed Values: [ "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" ]
    Status of current work request.
  • The date and time the request was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
  • The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
  • The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
Nested Schema : resources
Type: array
The resources affected by this work request.
Show Source
Nested Schema : WorkRequestResource
Type: object
A resource created or operated on by a work request.
Show Source
  • Allowed Values: [ "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED" ]
    The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
  • The resource type the work request affects.
  • The URI path that the user can do a GET on to access the resource metadata
  • The identifier of the resource the work request affects.

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : DefaultError
Type: object
Error Information.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    A short error code that defines the error, meant for programmatic parsing.
  • Minimum Length: 1
    Maximum Length: 1024
    A human-readable error string.

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : DefaultError
Type: object
Error Information.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    A short error code that defines the error, meant for programmatic parsing.
  • Minimum Length: 1
    Maximum Length: 1024
    A human-readable error string.

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : DefaultError
Type: object
Error Information.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    A short error code that defines the error, meant for programmatic parsing.
  • Minimum Length: 1
    Maximum Length: 1024
    A human-readable error string.

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : DefaultError
Type: object
Error Information.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    A short error code that defines the error, meant for programmatic parsing.
  • Minimum Length: 1
    Maximum Length: 1024
    A human-readable error string.

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : DefaultError
Type: object
Error Information.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    A short error code that defines the error, meant for programmatic parsing.
  • Minimum Length: 1
    Maximum Length: 1024
    A human-readable error string.

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : DefaultError
Type: object
Error Information.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    A short error code that defines the error, meant for programmatic parsing.
  • Minimum Length: 1
    Maximum Length: 1024
    A human-readable error string.
Back to Top