work_request_logs
Creates, updates, deletes, gets or lists a work_request_logs resource.
Overview​
| Name | work_request_logs |
| Type | Resource |
| Id | oci.logging.work_request_logs |
Fields​
The following fields are returned by SELECT queries:
- list
A log message from the execution of a work request.
| Name | Datatype | Description |
|---|---|---|
message | string | Human-readable log message. |
timestamp | string (date-time) | The time the log message was written. An RFC3339-formatted date and time string. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | workRequestId, region | opc-request-id, page, limit | Return a list of logs for a given work request.<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.
| Name | Datatype | Description |
|---|---|---|
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 asynchronous request ID. |
limit | integer | When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. |
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. |
page | string | For list pagination. The value of the opc-next-page or opc-previous-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
SELECT examples​
- list
Return a list of logs for a given work request.<br />
SELECT
message,
timestamp
FROM oci.logging.work_request_logs
WHERE workRequestId = '{{ workRequestId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND page = '{{ page }}'
AND limit = '{{ limit }}'
;