List Work Requests

get

/20191010/workRequests

Lists the work requests in a compartment.

Request

Supported Media Types
Query Parameters
  • Unique service identifier.
  • The ID of the compartment in which to list resources.
  • Minimum Value: 1
    Maximum Value: 1000
    The maximum number of items to return.
    Default Value: 10
  • Minimum Length: 1
    Maximum Length: 1024
    The page at which to start retrieving results.
  • The field to sort by. Only one sort order may be provided. Default order for TIMESTARTED is descending. Default order for WORKREQUESTID is ascending. If no value is specified TIMESTARTED is default.
    Default Value: timeStarted
    Allowed Values: [ "timeStarted", "workRequestId" ]
  • The sort order to use, either 'asc' for ascending or 'desc' for decending.
    Default Value: ASC
    Allowed Values: [ "ASC", "DESC" ]
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

The list of work requests.
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 : WorkRequestCollection
Type: object
Result of a platform list or search. Contains WorkRequestSummary
Show Source
Nested Schema : items
Type: array
Collection of WorkRequestSummary
Show Source
Nested Schema : WorkRequestSummary
Type: object
A description of workrequest status
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_PLATFORM", "UPDATE_PLATFORM", "UPGRADE_PLATFORM", "DELETE_PLATFORM", "SCALE_PLATFORM", "START_PLATFORM", "STOP_PLATFORM", "CUSTOMIZE_PLATFORM", "SCALE_CHAINCODE_HOSTS", "WORKREQUEST_CLEANUP" ]
    Type of the work request
  • Percentage of the request completed.
  • resources
    The resources affected by this work request.
  • 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" ]
    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

401 Response

Not authorized

404 Response

Invalid parameters

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 : Error
Type: object
Error Information.
Show Source

500 Response

Service unavailable

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 : Error
Type: object
Error Information.
Show Source
Back to Top