Get work request status
get
/20180828/workRequests/{workRequestId}
This path retrieves the details of a work request.
Request
Path Parameters
-
workRequestId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
Header Parameters
-
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.
Response
Supported Media Types
- application/json
200 Response
The work request was retrieved.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
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.
-
retry-after: integer
A decimal number representing the number of seconds the client should wait before polling this endpoint again.
Root Schema : WorkRequest
Type:
object
An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation,
the service creates a work request. A work request is an activity log that allows you to track each step in the operation's
progress. Each work request has an OCID that allows you to interact with it programmatically and use it for automation.
Show Source
-
compartmentId(required):
string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request.
-
id(required):
string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the work request.
-
operationType(required):
string
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. -
percentComplete(required):
number(float)
Displays the progress of the operation tracked by the work request as a percentage of the total work that must be performed.
-
resources(required):
array resources
Maximum Number of Items:
32
The resources that are affected by the work request. -
status(required):
string
Allowed Values:
[ "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" ]
The status of the work request. -
timeAccepted(required):
string(date-time)
The date and time that the work request was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
-
timeFinished:
string(date-time)
The date and time that the work request was finished, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
-
timeStarted:
string(date-time)
The date and time that the work request was started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
-
timeUpdated:
string(date-time)
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 the work request.
Show Source
-
Array of:
object WorkRequestResource
A resource created or operated on by a work request.
Nested Schema : WorkRequestResource
Type:
object
A resource created or operated on by a work request.
Show Source
-
actionType(required):
string
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. -
entityType(required):
string
The resource type that the work request affects.
-
entityUri:
string
The URI path that you can use for a GET request to access the resource metadata.
-
identifier(required):
string
An [OCID](/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource.
-
metadata:
object metadata
Additional Properties Allowed: additionalPropertiesAdditional 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
-
opc-request-id: string
Unique identifier for the request
Root Schema : Error
Type:
object
Error information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique identifier for the request
Root Schema : Error
Type:
object
Error information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests
Headers
-
opc-request-id: string
Unique identifier for the request
Root Schema : Error
Type:
object
Error information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique identifier for the request
Root Schema : Error
Type:
object
Error information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
An error has occurred.
Headers
-
opc-request-id: string
Unique identifier for the request
Root Schema : Error
Type:
object
Error information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.