work_request_errors
Creates, updates, deletes, gets or lists a work_request_errors resource.
Overview​
| Name | work_request_errors |
| Type | Resource |
| Id | oci.container_engine.work_request_errors |
Fields​
The following fields are returned by SELECT queries:
- list
Errors related to a specific work request.
| Name | Datatype | Description |
|---|---|---|
code | string | A short error code that defines the error, meant for programmatic parsing. See [API Errors](https:​//docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm). (example: UnknownError) |
message | string | A human-readable error string. (example: error validating payload) |
timestamp | string (date-time) | The date and time the error occurred. (example: 2017-07-21T16:11:29Z) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | compartmentId, workRequestId, region | opc-request-id | Get the errors of a work request. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The OCID of the compartment. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
workRequestId | string | The OCID of the work request. |
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. |
SELECT examples​
- list
Get the errors of a work request.
SELECT
code,
message,
timestamp
FROM oci.container_engine.work_request_errors
WHERE compartmentId = '{{ compartmentId }}' -- required
AND workRequestId = '{{ workRequestId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;