List work requests

get

/20180828/workRequests

This path lists the work requests in a compartment.

Request

Query Parameters
  • The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
  • Minimum Value: 1
    Maximum Value: 1000
    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](/iaas/Content/API/Concepts/usingapi.htm#nine).
    Default Value: 10
  • Minimum Length: 1
    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](/iaas/Content/API/Concepts/usingapi.htm#nine).
  • The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.
  • The field that you can use to sort the available information. Only one sort order may be provided. Results in the `timeAccepted` field are displayed in descending order by default.
    Default Value: timeAccepted
    Allowed Values: [ "timeAccepted" ]
  • The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    Allowed Values: [ "ASC", "DESC" ]
  • A filter to return only the resources that match the given lifecycle state.
    Allowed Values: [ "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" ]
  • The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
Header Parameters
  • 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.
Back to Top

Response

Supported Media Types

200 Response

The list of work requests was retrieved.
Headers
  • For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
  • 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
A list of work requests. This list can contain both work requests and other information, such as metadata.
Show Source
Nested Schema : items
Type: array
A list of work requests.
Show Source
Nested Schema : WorkRequestSummary
Type: object
Summary information about an asynchronous work request.
Show Source
  • The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request.
  • The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the work request.
  • Allowed Values: [ "CREATE_DATA_SHARING_AGREEMENT", "UPDATE_DATA_SHARING_AGREEMENT", "DELETE_DATA_SHARING_AGREEMENT", "MOVE_DATA_SHARING_AGREEMENT", "CREATE_DATA_SHARING_CONSTRAINT", "UPDATE_DATA_SHARING_CONSTRAINT", "DELETE_DATA_SHARING_CONSTRAINT", "MOVE_DATA_SHARING_CONSTRAINT", "CREATE_DATA_SHARING_REQUEST", "UPDATE_DATA_SHARING_REQUEST", "DELETE_DATA_SHARING_REQUEST", "MOVE_DATA_SHARING_REQUEST", "CREATE_DELIVERY_ENDPOINT", "UPDATE_DELIVERY_ENDPOINT", "DELETE_DELIVERY_ENDPOINT", "MOVE_DELIVERY_ENDPOINT", "CREATE_PAYER", "UPDATE_PAYER", "DELETE_PAYER", "MOVE_PAYER", "MOVE_PAYER_DIRECTORY_ENTRY", "CREATE_PROVIDER", "UPDATE_PROVIDER", "DELETE_PROVIDER", "MOVE_PROVIDER", "MOVE_PROVIDER_DIRECTORY_ENTRY", "CREATE_QUERY_ENDPOINT", "UPDATE_QUERY_ENDPOINT", "DELETE_QUERY_ENDPOINT", "MOVE_QUERY_ENDPOINT" ]
    The asynchronous operation tracked by this work request.
  • Displays the progress of the operation tracked by the work request as a percentage of the total work that must be performed.
  • resources
    Maximum Number of Items: 32
    The resources that are affected by this work request.
  • Allowed Values: [ "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" ]
    The status of the work request.
  • The date and time that the work request was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
  • The date and time that the work request was finished, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
  • The date and time that the work request was started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
  • The date and time that the work request was updated, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
Nested Schema : resources
Type: array
Maximum Number of Items: 32
The resources that are 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 operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED state, respectively.
  • The resource type that the work request affects.
  • The URI path that you can use for a GET request to access the resource metadata.
  • An [OCID](/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource.
  • metadata
    Additional Properties Allowed: additionalProperties
    Additional information that helps to explain the resource.
Nested Schema : metadata
Type: object
Additional Properties Allowed
Show Source
Additional information that helps to explain the resource.
Allowed Values: [ "IS_DRY_RUN" ]

401 Response

Unauthorized
Headers
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

404 Response

Not Found
Headers
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

429 Response

Too Many Requests
Headers
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

500 Response

Internal Server Error
Headers
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

Default Response

An error has occurred.
Headers
Body ()
Root Schema : Error
Type: object
Error information.
Show Source
Back to Top