Skip to main content

db_system_os_patch_history_entries

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

Overview​

Namedb_system_os_patch_history_entries
TypeResource
Idoci.database.db_system_os_patch_history_entries

Fields​

The following fields are returned by SELECT queries:

The OS patch operation details were retrieved.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the OS patch history entry.
actionstringThe action being performed or was completed. (PRECHECK, APPLY)
dbSystemIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the DB system.
lifecycleDetailsstringA descriptive text associated with the lifecycleState. Typically contains additional displayable text.
lifecycleStatestringThe current state of the action. (IN_PROGRESS, SUCCEEDED, FAILED)
osPatchDetailsobjectResults of OS patch details for a DB System.
timeEndedstring (date-time)The date and time when the patch action completed
timeStartedstring (date-time)The date and time when the patch action started.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdbSystemId, osPatchHistoryEntryId, regionopc-request-idGets the details of the specified OS patch action for the specified DB system.<br />
listselectdbSystemId, regionlimit, page, sortOrder, sortBy, lifecycleState, action, opc-request-idGets the history of the OS patch actions performed on the specified DB system.<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
dbSystemIdstringThe DB system [OCID](/Content/General/Concepts/identifiers.htm).
osPatchHistoryEntryIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the patch history entry.
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)
actionstringA filter to return only OS patch history entries that match the specified OS patch action.
lifecycleStatestringA filter to return only OS patch history entries that match the given lifecycle state exactly.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
pagestringThe pagination token to continue listing from.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMESTARTED is descending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets the details of the specified OS patch action for the specified DB system.<br />

SELECT
id,
action,
dbSystemId,
lifecycleDetails,
lifecycleState,
osPatchDetails,
timeEnded,
timeStarted
FROM oci.database.db_system_os_patch_history_entries
WHERE dbSystemId = '{{ dbSystemId }}' -- required
AND osPatchHistoryEntryId = '{{ osPatchHistoryEntryId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;