Skip to main content

work_request_logs

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

Overview​

Namework_request_logs
TypeResource
Idoci.resource_manager.work_request_logs

Fields​

The following fields are returned by SELECT queries:

A log message from the execution of a work request.

NameDatatypeDescription
messagestringA human-readable log message.
timestampstring (date-time)The date and time when the log message was written. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectworkRequestId, regioncompartmentId, limit, page, sortOrder, opc-request-idReturns a paginated list of logs for the specified work request.<br />For more information, see<br />[Listing Logs for a Work Request](/iaas/Content/ResourceManager/Tasks/list-work-request-logs.htm).<br />

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
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](/iaas/Content/General/Concepts/identifiers.htm) of the work request.
compartmentIdstringA filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm).
limitintegerThe number of items returned in a paginated List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pagestringThe value of the opc-next-page response header from the preceding List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
sortOrderstringThe sort order to use when sorting returned resources. Ascending (ASC) or descending (DESC).

SELECT examples​

Returns a paginated list of logs for the specified work request.<br />For more information, see<br />[Listing Logs for a Work Request](/iaas/Content/ResourceManager/Tasks/list-work-request-logs.htm).<br />

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