Skip to main content

scheduled_runs

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

Overview​

Namescheduled_runs
TypeResource
Idoci.usage.scheduled_runs

Fields​

The following fields are returned by SELECT queries:

The saved scheduled run.

NameDatatypeDescription
idstringThe OCID representing a unique shedule run.
lifecycleDetailsstringAdditional details about the scheduled run.
lifecycleStatestringSpecifies whether or not the schedule job was successfully run. (FAILED, SUCCEEDED)
scheduleIdstringThe OCID representing a unique shedule.
timeCreatedstring (date-time)The time the schedule started executing.
timeFinishedstring (date-time)The time the schedule finished executing.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscheduledRunId, regionopc-request-idReturns the saved schedule run.<br />
listselectscheduleId, regionopc-request-id, page, limit, sortBy, sortOrderReturns the schedule history list.<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)
scheduleIdstringThe schedule unique ID.
scheduledRunIdstringThe scheduled run unique OCID.
limitintegerThe maximum number of items to return.
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 page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
sortBystringThe field to sort by. If not specified, the default is timeCreated.
sortOrderstringThe sort order to use, whether 'asc' or 'desc'.

SELECT examples​

Returns the saved schedule run.<br />

SELECT
id,
lifecycleDetails,
lifecycleState,
scheduleId,
timeCreated,
timeFinished
FROM oci.usage.scheduled_runs
WHERE scheduledRunId = '{{ scheduledRunId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;