Skip to main content

work_request_logs

Creates, updates, deletes, gets or lists a work_request_logs resource.

Overview​

Namework_request_logs
TypeResource
Idoci.container_engine.work_request_logs

Fields​

The following fields are returned by SELECT queries:

Log entries related to a specific work request.

NameDatatypeDescription
messagestringThe description of an action that occurred. (example: error validating payload)
timestampstringThe date and time the log entry occurred. (example: 2017-07-21T16:11:29Z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcompartmentId, workRequestId, regionopc-request-idGet the logs 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.

NameDatatypeDescription
compartmentIdstringThe OCID of the compartment.
regionstringOCI 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)
workRequestIdstringThe OCID of the work request.
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

SELECT examples​

Get the logs of a work request.

SELECT
message,
timestamp
FROM oci.container_engine.work_request_logs
WHERE compartmentId = '{{ compartmentId }}' -- required
AND workRequestId = '{{ workRequestId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;